Interface CfnInstanceProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstanceProfileProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:38.084Z")
@Stability(Stable)
public interface CfnInstanceProfileProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnInstanceProfile.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devicefarm.*;
CfnInstanceProfileProps cfnInstanceProfileProps = CfnInstanceProfileProps.builder()
.name("name")
// the properties below are optional
.description("description")
.excludeAppPackagesFromCleanup(List.of("excludeAppPackagesFromCleanup"))
.packageCleanup(false)
.rebootAfterUse(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstanceProfilePropsstatic final classAn implementation forCfnInstanceProfileProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe description of the instance profile.An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.getName()The name of the instance profile.default ObjectWhen set totrue, Device Farm removes app packages after a test run.default ObjectWhen set totrue, Device Farm reboots the instance after a test run.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the instance profile.- See Also:
-
getDescription
The description of the instance profile.- See Also:
-
getExcludeAppPackagesFromCleanup
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.The list of packages is considered only if you set
packageCleanuptotrue.- See Also:
-
getPackageCleanup
When set totrue, Device Farm removes app packages after a test run.The default value is
falsefor private devices.Returns union: either
BooleanorIResolvable- See Also:
-
getRebootAfterUse
When set totrue, Device Farm reboots the instance after a test run.The default value is
true.Returns union: either
BooleanorIResolvable- See Also:
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag in the guide .
- See Also:
-
builder
- Returns:
- a
CfnInstanceProfileProps.BuilderofCfnInstanceProfileProps
-