Show / Hide Table of Contents

Class CfnResourcePolicyPropsMixin

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

Inheritance
object
Mixin
CfnResourcePolicyPropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnResourcePolicyPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnResourcePolicyPropsMixin Inherits Mixin Implements IMixin
Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;

             var resourcePolicy;

             var cfnResourcePolicyPropsMixin = new CfnResourcePolicyPropsMixin(new CfnResourcePolicyMixinProps {
                 ResourceArn = "resourceArn",
                 ResourcePolicy = resourcePolicy
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Synopsis

Constructors

CfnResourcePolicyPropsMixin(ICfnResourcePolicyMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::CloudTrail::ResourcePolicy.

Properties

CFN_PROPERTY_KEYS

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

Props

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

Strategy

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

Supports(IConstruct)

Check if this mixin supports the given construct.

Constructors

CfnResourcePolicyPropsMixin(ICfnResourcePolicyMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::CloudTrail::ResourcePolicy.

public CfnResourcePolicyPropsMixin(ICfnResourcePolicyMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnResourcePolicyMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value

string[]

Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;

             var resourcePolicy;

             var cfnResourcePolicyPropsMixin = new CfnResourcePolicyPropsMixin(new CfnResourcePolicyMixinProps {
                 ResourceArn = "resourceArn",
                 ResourcePolicy = resourcePolicy
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Props

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

protected virtual ICfnResourcePolicyMixinProps Props { get; }
Property Value

ICfnResourcePolicyMixinProps

Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;

             var resourcePolicy;

             var cfnResourcePolicyPropsMixin = new CfnResourcePolicyPropsMixin(new CfnResourcePolicyMixinProps {
                 ResourceArn = "resourceArn",
                 ResourcePolicy = resourcePolicy
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Strategy

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel.

protected virtual PropertyMergeStrategy Strategy { get; }
Property Value

PropertyMergeStrategy

Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

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.Mixins.Preview.Mixins;
             using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;

             var resourcePolicy;

             var cfnResourcePolicyPropsMixin = new CfnResourcePolicyPropsMixin(new CfnResourcePolicyMixinProps {
                 ResourceArn = "resourceArn",
                 ResourcePolicy = resourcePolicy
             }, new CfnPropertyMixinOptions {
                 Strategy = PropertyMergeStrategy.OVERRIDE
             });

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

public override IConstruct ApplyTo(IConstruct construct)
Parameters
construct IConstruct
Returns

IConstruct

Overrides
Mixin.ApplyTo(IConstruct)
Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

ExampleMetadata: fixture=_generated

Supports(IConstruct)

Check if this mixin supports the given construct.

public override bool Supports(IConstruct construct)
Parameters
construct IConstruct
Returns

bool

Overrides
Mixin.Supports(IConstruct)
Remarks

For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-resourcepolicy.html

CloudformationResource: AWS::CloudTrail::ResourcePolicy

Mixin: true

ExampleMetadata: fixture=_generated

Implements

IMixin
Back to top Generated by DocFX