Class CfnPolicyPrincipalAttachment
Use the AWS::IoT::PolicyPrincipalAttachment resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPolicyPrincipalAttachment : CfnResource, IInspectable, IPolicyPrincipalAttachmentRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnPolicyPrincipalAttachment Inherits CfnResource Implements IInspectable, IPolicyPrincipalAttachmentRef, IConstruct, IDependable, IEnvironmentAware
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
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 cfnPolicyPrincipalAttachment = new CfnPolicyPrincipalAttachment(this, "MyCfnPolicyPrincipalAttachment", new CfnPolicyPrincipalAttachmentProps {
PolicyName = "policyName",
Principal = "principal"
});
Synopsis
Constructors
| CfnPolicyPrincipalAttachment(Construct, string, ICfnPolicyPrincipalAttachmentProps) | Create a new |
Properties
| AttrId | Use the |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Use the |
| PolicyName | The name of the AWS IoT policy. |
| PolicyPrincipalAttachmentRef | A reference to a PolicyPrincipalAttachment resource. |
| Principal | The principal, which can be a certificate ARN (as returned from the |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnPolicyPrincipalAttachment(object) | Checks whether the given object is a CfnPolicyPrincipalAttachment. |
| RenderProperties(IDictionary<string, object>) | Use the |
Constructors
CfnPolicyPrincipalAttachment(Construct, string, ICfnPolicyPrincipalAttachmentProps)
Create a new AWS::IoT::PolicyPrincipalAttachment.
public CfnPolicyPrincipalAttachment(Construct scope, string id, ICfnPolicyPrincipalAttachmentProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnPolicyPrincipalAttachmentProps
Resource properties.
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
Properties
AttrId
Use the AWS::IoT::PolicyPrincipalAttachment resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
CfnProperties
Use the AWS::IoT::PolicyPrincipalAttachment resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
PolicyName
The name of the AWS IoT policy.
public virtual string PolicyName { get; set; }
Property Value
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
PolicyPrincipalAttachmentRef
A reference to a PolicyPrincipalAttachment resource.
public virtual IPolicyPrincipalAttachmentReference PolicyPrincipalAttachmentRef { get; }
Property Value
IPolicyPrincipalAttachmentReference
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
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
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
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.
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
IsCfnPolicyPrincipalAttachment(object)
Checks whether the given object is a CfnPolicyPrincipalAttachment.
public static bool IsCfnPolicyPrincipalAttachment(object x)
Parameters
- x object
Returns
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Use the AWS::IoT::PolicyPrincipalAttachment resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
For information about working with AWS IoT policies and principals, see Authorization in the AWS IoT Developer Guide .
CloudformationResource: AWS::IoT::PolicyPrincipalAttachment
ExampleMetadata: fixture=_generated