Class CfnPolicyMixinProps
Properties for CfnPolicyPropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.VerifiedPermissions
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnPolicyMixinProps : ICfnPolicyMixinProps
Syntax (vb)
Public Class CfnPolicyMixinProps Implements ICfnPolicyMixinProps
Remarks
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.CfnPropertyMixins.AWS.VerifiedPermissions;
var cfnPolicyMixinProps = new CfnPolicyMixinProps {
Definition = new PolicyDefinitionProperty {
Static = new StaticPolicyDefinitionProperty {
Description = "description",
Statement = "statement"
},
TemplateLinked = new TemplateLinkedPolicyDefinitionProperty {
PolicyTemplateId = "policyTemplateId",
Principal = new EntityIdentifierProperty {
EntityId = "entityId",
EntityType = "entityType"
},
Resource = new EntityIdentifierProperty {
EntityId = "entityId",
EntityType = "entityType"
}
}
},
PolicyStoreId = "policyStoreId"
};
Synopsis
Constructors
| CfnPolicyMixinProps() | Properties for CfnPolicyPropsMixin. |
Properties
| Definition | Specifies the policy type and content to use for the new or updated policy. |
| PolicyStoreId | Specifies the |
Constructors
CfnPolicyMixinProps()
Properties for CfnPolicyPropsMixin.
public CfnPolicyMixinProps()
Remarks
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.CfnPropertyMixins.AWS.VerifiedPermissions;
var cfnPolicyMixinProps = new CfnPolicyMixinProps {
Definition = new PolicyDefinitionProperty {
Static = new StaticPolicyDefinitionProperty {
Description = "description",
Statement = "statement"
},
TemplateLinked = new TemplateLinkedPolicyDefinitionProperty {
PolicyTemplateId = "policyTemplateId",
Principal = new EntityIdentifierProperty {
EntityId = "entityId",
EntityType = "entityType"
},
Resource = new EntityIdentifierProperty {
EntityId = "entityId",
EntityType = "entityType"
}
}
},
PolicyStoreId = "policyStoreId"
};
Properties
Definition
Specifies the policy type and content to use for the new or updated policy.
public object? Definition { get; set; }
Property Value
Remarks
The definition structure must include either a Static or a TemplateLinked element.
Type union: either IResolvable or CfnPolicyPropsMixin.IPolicyDefinitionProperty
PolicyStoreId
Specifies the PolicyStoreId of the policy store you want to store the policy in.
public string? PolicyStoreId { get; set; }