Class CfnThingPrincipalAttachment
A CloudFormation AWS::IoT::ThingPrincipalAttachment
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public class CfnThingPrincipalAttachment : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnThingPrincipalAttachment
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Use the AWS::IoT::ThingPrincipalAttachment
resource to attach a principal (an X.509 certificate or another credential) to a thing.
For more information about working with AWS IoT things and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::ThingPrincipalAttachment
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.IoT;
var cfnThingPrincipalAttachment = new CfnThingPrincipalAttachment(this, "MyCfnThingPrincipalAttachment", new CfnThingPrincipalAttachmentProps {
Principal = "principal",
ThingName = "thingName"
});
Synopsis
Constructors
CfnThingPrincipalAttachment(Construct, String, ICfnThingPrincipalAttachmentProps) | Create a new |
CfnThingPrincipalAttachment(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnThingPrincipalAttachment(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Principal | The principal, which can be a certificate ARN (as returned from the |
ThingName | The name of the AWS IoT thing. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnThingPrincipalAttachment(Construct, String, ICfnThingPrincipalAttachmentProps)
Create a new AWS::IoT::ThingPrincipalAttachment
.
public CfnThingPrincipalAttachment(Construct scope, string id, ICfnThingPrincipalAttachmentProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnThingPrincipalAttachmentProps
- resource properties.
CfnThingPrincipalAttachment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnThingPrincipalAttachment(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnThingPrincipalAttachment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnThingPrincipalAttachment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
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
Principal
The principal, which can be a certificate ARN (as returned from the CreateCertificate
operation) or an Amazon Cognito ID.
public virtual string Principal { get; set; }
Property Value
System.String
Remarks
ThingName
The name of the AWS IoT thing.
public virtual string ThingName { get; set; }
Property Value
System.String
Remarks
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>