Class CfnResourcePolicy
A CloudFormation AWS::SSM::ResourcePolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.AWS.SSM.dll
Syntax (csharp)
public class CfnResourcePolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnResourcePolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Creates or updates a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an AWS account ) that can manage your Systems Manager resources. Currently, OpsItemGroup
is the only resource that supports Systems Manager resource policies. The resource policy for OpsItemGroup
enables AWS accounts to view and interact with OpsCenter operational work items (OpsItems). OpsCenter is a capability of Systems Manager .
CloudformationResource: AWS::SSM::ResourcePolicy
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcepolicy.html
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.SSM;
var policy;
var cfnResourcePolicy = new CfnResourcePolicy(this, "MyCfnResourcePolicy", new CfnResourcePolicyProps {
Policy = policy,
ResourceArn = "resourceArn"
});
Synopsis
Constructors
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps) | Create a new |
CfnResourcePolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResourcePolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrPolicyHash | ID of the current policy version. |
AttrPolicyId | ID of the current policy version. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Policy | A policy you want to associate with a resource. |
ResourceArn | Amazon Resource Name (ARN) of the resource to which you want to attach a policy. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResourcePolicy(Construct, String, ICfnResourcePolicyProps)
Create a new AWS::SSM::ResourcePolicy
.
public CfnResourcePolicy(Construct scope, string id, ICfnResourcePolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnResourcePolicyProps
- resource properties.
CfnResourcePolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResourcePolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResourcePolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResourcePolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrPolicyHash
ID of the current policy version.
public virtual string AttrPolicyHash { get; }
Property Value
System.String
Remarks
The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash and the policy ID when updating or deleting a policy.
CloudformationAttribute: PolicyHash
AttrPolicyId
ID of the current policy version.
public virtual string AttrPolicyId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: PolicyId
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
Policy
A policy you want to associate with a resource.
public virtual object Policy { get; set; }
Property Value
System.Object
Remarks
ResourceArn
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
public virtual string ResourceArn { 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>