Class CfnInstanceProfile
Creates a profile that can be applied to one or more private fleet device instances.
Inherited Members
Namespace: Amazon.CDK.AWS.DeviceFarm
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstanceProfile : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnInstanceProfile
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
CloudformationResource: AWS::DeviceFarm::InstanceProfile
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DeviceFarm;
var cfnInstanceProfile = new CfnInstanceProfile(this, "MyCfnInstanceProfile", new CfnInstanceProfileProps {
Name = "name",
// the properties below are optional
Description = "description",
ExcludeAppPackagesFromCleanup = new [] { "excludeAppPackagesFromCleanup" },
PackageCleanup = false,
RebootAfterUse = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnInstanceProfile(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnInstanceProfile(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnInstanceProfile(Construct, String, ICfnInstanceProfileProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) of the instance profile. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | The description of the instance profile. |
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. |
Name | The name of the instance profile. |
PackageCleanup | When set to |
RebootAfterUse | When set to |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnInstanceProfile(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnInstanceProfile(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnInstanceProfile(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnInstanceProfile(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnInstanceProfile(Construct, String, ICfnInstanceProfileProps)
public CfnInstanceProfile(Construct scope, string id, ICfnInstanceProfileProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnInstanceProfileProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) of the instance profile.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
See Amazon resource names in the General Reference guide .
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the instance profile.
public virtual string Description { get; set; }
Property Value
System.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.
public virtual string[] ExcludeAppPackagesFromCleanup { get; set; }
Property Value
System.String[]
Name
The name of the instance profile.
public virtual string Name { get; set; }
Property Value
System.String
PackageCleanup
When set to true
, Device Farm removes app packages after a test run.
public virtual object PackageCleanup { get; set; }
Property Value
System.Object
RebootAfterUse
When set to true
, Device Farm reboots the instance after a test run.
public virtual object RebootAfterUse { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
An array of key-value pairs to apply to this resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>