Table of Contents

Interface ILazyRoleProps

Namespace
Amazon.CDK.AWS.IAM
Assembly
Amazon.CDK.AWS.IAM.dll

Properties for defining a LazyRole.

public interface ILazyRoleProps : IRoleProps
Inherited Members

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;
            using Amazon.CDK;

            ManagedPolicy managedPolicy;
            PolicyDocument policyDocument;
            IPrincipal principal;
            var lazyRoleProps = new LazyRoleProps {
                AssumedBy = principal,

                // the properties below are optional
                Description = "description",
                ExternalId = "externalId",
                ExternalIds = new [] { "externalIds" },
                InlinePolicies = new Dictionary<string, PolicyDocument> {
                    { "inlinePoliciesKey", policyDocument }
                },
                ManagedPolicies = new [] { managedPolicy },
                MaxSessionDuration = Duration.Minutes(30),
                Path = "path",
                PermissionsBoundary = managedPolicy,
                RoleName = "roleName"
            };

Remarks

ExampleMetadata: fixture=_generated