CfnInstanceProfileProps
- class aws_cdk.aws_devicefarm.CfnInstanceProfileProps(*, name, description=None, exclude_app_packages_from_cleanup=None, package_cleanup=None, reboot_after_use=None, tags=None)
Bases:
object
Properties for defining a
CfnInstanceProfile
.- Parameters:
name (
str
) – The name of the instance profile.description (
Optional
[str
]) – The description of the instance profile.exclude_app_packages_from_cleanup (
Optional
[Sequence
[str
]]) – 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 setpackageCleanup
totrue
.package_cleanup (
Union
[bool
,IResolvable
,None
]) – When set totrue
, Device Farm removes app packages after a test run. The default value isfalse
for private devices.reboot_after_use (
Union
[bool
,IResolvable
,None
]) – When set totrue
, Device Farm reboots the instance after a test run. The default value istrue
.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag in the guide .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_devicefarm as devicefarm cfn_instance_profile_props = devicefarm.CfnInstanceProfileProps( name="name", # the properties below are optional description="description", exclude_app_packages_from_cleanup=["excludeAppPackagesFromCleanup"], package_cleanup=False, reboot_after_use=False, tags=[CfnTag( key="key", value="value" )] )
Attributes
- description
The description of the instance profile.
- exclude_app_packages_from_cleanup
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
packageCleanup
totrue
.
- name
The name of the instance profile.
- package_cleanup
When set to
true
, Device Farm removes app packages after a test run.The default value is
false
for private devices.
- reboot_after_use
When set to
true
, Device Farm reboots the instance after a test run.The default value is
true
.