Class CfnInstanceProfile.Builder
java.lang.Object
software.amazon.awscdk.services.devicefarm.CfnInstanceProfile.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceProfile>
- Enclosing class:
CfnInstanceProfile
@Stability(Stable)
public static final class CfnInstanceProfile.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceProfile>
A fluent builder for
CfnInstanceProfile.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnInstanceProfile.Builderdescription(String description) The description of the instance profile.excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) 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 name of the instance profile.packageCleanup(Boolean packageCleanup) When set totrue, Device Farm removes app packages after a test run.packageCleanup(IResolvable packageCleanup) When set totrue, Device Farm removes app packages after a test run.rebootAfterUse(Boolean rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.rebootAfterUse(IResolvable rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnInstanceProfile.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInstanceProfile.Builder.
-
name
The name of the instance profile.- Parameters:
name- The name of the instance profile. This parameter is required.- Returns:
this- See Also:
-
description
The description of the instance profile.- Parameters:
description- The description of the instance profile. This parameter is required.- Returns:
this- See Also:
-
excludeAppPackagesFromCleanup
@Stability(Stable) public CfnInstanceProfile.Builder excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) 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.- Parameters:
excludeAppPackagesFromCleanup- An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes. This parameter is required.- Returns:
this- See Also:
-
packageCleanup
When set totrue, Device Farm removes app packages after a test run.The default value is
falsefor private devices.- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. This parameter is required.- Returns:
this- See Also:
-
packageCleanup
When set totrue, Device Farm removes app packages after a test run.The default value is
falsefor private devices.- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. This parameter is required.- Returns:
this- See Also:
-
rebootAfterUse
When set totrue, Device Farm reboots the instance after a test run.The default value is
true.- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. This parameter is required.- Returns:
this- See Also:
-
rebootAfterUse
When set totrue, Device Farm reboots the instance after a test run.The default value is
true.- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the guide .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceProfile>- Returns:
- a newly built instance of
CfnInstanceProfile.
-