Class CfnPolicyPrincipalAttachment
Use the AWS::IoT::PolicyPrincipalAttachment
resource to attach an AWS IoT policy to a principal (an X.509 certificate or other credential).
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPolicyPrincipalAttachment : CfnResource, IInspectable
Syntax (vb)
Public Class CfnPolicyPrincipalAttachment
Inherits CfnResource
Implements IInspectable
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
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
|
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Policy |
The name of the AWS IoT policy. |
Principal | The principal, which can be a certificate ARN (as returned from the |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPolicyPrincipalAttachment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPolicyPrincipalAttachment(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnPolicyPrincipalAttachment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPolicyPrincipalAttachment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnPolicyPrincipalAttachment(Construct, String, ICfnPolicyPrincipalAttachmentProps)
public CfnPolicyPrincipalAttachment(Construct scope, string id, ICfnPolicyPrincipalAttachmentProps 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 ICfn
Policy Principal Attachment Props Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.
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
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
PolicyName
The name of the AWS IoT policy.
public virtual string PolicyName { get; set; }
Property Value
System.
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.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector 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. <System.Generic. IDictionary String , System.Object >
Returns
System.