Show / Hide Table of Contents

Interface ICfnRolePolicyProps

Properties for defining a CfnRolePolicy.

Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnRolePolicyProps
Syntax (vb)
Public Interface ICfnRolePolicyProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-rolepolicy.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.IAM;

             var policyDocument;

             var cfnRolePolicyProps = new CfnRolePolicyProps {
                 PolicyName = "policyName",
                 RoleName = "roleName",

                 // the properties below are optional
                 PolicyDocument = policyDocument
             };

Synopsis

Properties

PolicyDocument

The policy document.

PolicyName

The name of the policy document.

RoleName

The name of the role to associate the policy with.

Properties

PolicyDocument

The policy document.

object? PolicyDocument { get; }
Property Value

object

Remarks

You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.

The regex pattern used to validate this parameter is a string of characters consisting of the following:

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-rolepolicy.html#cfn-iam-rolepolicy-policydocument

    PolicyName

    The name of the policy document.

    string PolicyName { get; }
    Property Value

    string

    Remarks

    This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-rolepolicy.html#cfn-iam-rolepolicy-policyname

    RoleName

    The name of the role to associate the policy with.

    string RoleName { get; }
    Property Value

    string

    Remarks

    This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-rolepolicy.html#cfn-iam-rolepolicy-rolename

    Back to top Generated by DocFX