Documentation ¶
Index ¶
- func CfnAssignment_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAssignment_IsCfnElement(x interface{}) *bool
- func CfnAssignment_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnAssignment_IsConstruct(x interface{}) *bool
- func CfnInstanceAccessControlAttributeConfiguration_CFN_RESOURCE_TYPE_NAME() *string
- func CfnInstanceAccessControlAttributeConfiguration_IsCfnElement(x interface{}) *bool
- func CfnInstanceAccessControlAttributeConfiguration_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnInstanceAccessControlAttributeConfiguration_IsConstruct(x interface{}) *bool
- func CfnPermissionSet_CFN_RESOURCE_TYPE_NAME() *string
- func CfnPermissionSet_IsCfnElement(x interface{}) *bool
- func CfnPermissionSet_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnPermissionSet_IsConstruct(x interface{}) *bool
- func NewCfnAssignment_Override(c CfnAssignment, scope constructs.Construct, id *string, ...)
- func NewCfnInstanceAccessControlAttributeConfiguration_Override(c CfnInstanceAccessControlAttributeConfiguration, scope constructs.Construct, ...)
- func NewCfnPermissionSet_Override(c CfnPermissionSet, scope constructs.Construct, id *string, ...)
- type CfnAssignment
- type CfnAssignmentProps
- type CfnInstanceAccessControlAttributeConfiguration
- type CfnInstanceAccessControlAttributeConfigurationProps
- type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeProperty
- type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeValueProperty
- type CfnPermissionSet
- type CfnPermissionSetProps
- type CfnPermissionSet_CustomerManagedPolicyReferenceProperty
- type CfnPermissionSet_PermissionsBoundaryProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnAssignment_CFN_RESOURCE_TYPE_NAME ¶
func CfnAssignment_CFN_RESOURCE_TYPE_NAME() *string
func CfnAssignment_IsCfnElement ¶
func CfnAssignment_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnAssignment_IsCfnResource ¶
func CfnAssignment_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnAssignment_IsConstruct ¶
func CfnAssignment_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnInstanceAccessControlAttributeConfiguration_CFN_RESOURCE_TYPE_NAME ¶
func CfnInstanceAccessControlAttributeConfiguration_CFN_RESOURCE_TYPE_NAME() *string
func CfnInstanceAccessControlAttributeConfiguration_IsCfnElement ¶
func CfnInstanceAccessControlAttributeConfiguration_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnInstanceAccessControlAttributeConfiguration_IsCfnResource ¶
func CfnInstanceAccessControlAttributeConfiguration_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnInstanceAccessControlAttributeConfiguration_IsConstruct ¶
func CfnInstanceAccessControlAttributeConfiguration_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnPermissionSet_CFN_RESOURCE_TYPE_NAME ¶
func CfnPermissionSet_CFN_RESOURCE_TYPE_NAME() *string
func CfnPermissionSet_IsCfnElement ¶
func CfnPermissionSet_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnPermissionSet_IsCfnResource ¶
func CfnPermissionSet_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnPermissionSet_IsConstruct ¶
func CfnPermissionSet_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NewCfnAssignment_Override ¶
func NewCfnAssignment_Override(c CfnAssignment, scope constructs.Construct, id *string, props *CfnAssignmentProps)
Create a new `AWS::SSO::Assignment`.
func NewCfnInstanceAccessControlAttributeConfiguration_Override ¶
func NewCfnInstanceAccessControlAttributeConfiguration_Override(c CfnInstanceAccessControlAttributeConfiguration, scope constructs.Construct, id *string, props *CfnInstanceAccessControlAttributeConfigurationProps)
Create a new `AWS::SSO::InstanceAccessControlAttributeConfiguration`.
func NewCfnPermissionSet_Override ¶
func NewCfnPermissionSet_Override(c CfnPermissionSet, scope constructs.Construct, id *string, props *CfnPermissionSetProps)
Create a new `AWS::SSO::PermissionSet`.
Types ¶
type CfnAssignment ¶
type CfnAssignment interface { awscdk.CfnResource awscdk.IInspectable // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The ARN of the IAM Identity Center instance under which the operation will be executed. // // For more information about ARNs, see [Amazon Resource Names (ARNs) and AWS Service Namespaces](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* . InstanceArn() *string SetInstanceArn(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // The ARN of the permission set. PermissionSetArn() *string SetPermissionSetArn(val *string) // An identifier for an object in IAM Identity Center, such as a user or group. // // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the [IAM Identity Center Identity Store API Reference](https://docs.aws.amazon.com//singlesignon/latest/IdentityStoreAPIReference/welcome.html) . PrincipalId() *string SetPrincipalId(val *string) // The entity type for which the assignment will be created. PrincipalType() *string SetPrincipalType(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012). TargetId() *string SetTargetId(val *string) // The entity type for which the assignment will be created. TargetType() *string SetTargetType(val *string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::SSO::Assignment`.
Assigns access to a Principal for a specified AWS account using a specified permission set.
> The term *principal* here refers to a user or group that is defined in IAM Identity Center .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnAssignment := awscdk.Aws_sso.NewCfnAssignment(this, jsii.String("MyCfnAssignment"), &CfnAssignmentProps{ InstanceArn: jsii.String("instanceArn"), PermissionSetArn: jsii.String("permissionSetArn"), PrincipalId: jsii.String("principalId"), PrincipalType: jsii.String("principalType"), TargetId: jsii.String("targetId"), TargetType: jsii.String("targetType"), })
func NewCfnAssignment ¶
func NewCfnAssignment(scope constructs.Construct, id *string, props *CfnAssignmentProps) CfnAssignment
Create a new `AWS::SSO::Assignment`.
type CfnAssignmentProps ¶
type CfnAssignmentProps struct { // The ARN of the IAM Identity Center instance under which the operation will be executed. // // For more information about ARNs, see [Amazon Resource Names (ARNs) and AWS Service Namespaces](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* . InstanceArn *string `field:"required" json:"instanceArn" yaml:"instanceArn"` // The ARN of the permission set. PermissionSetArn *string `field:"required" json:"permissionSetArn" yaml:"permissionSetArn"` // An identifier for an object in IAM Identity Center, such as a user or group. // // PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the [IAM Identity Center Identity Store API Reference](https://docs.aws.amazon.com//singlesignon/latest/IdentityStoreAPIReference/welcome.html) . PrincipalId *string `field:"required" json:"principalId" yaml:"principalId"` // The entity type for which the assignment will be created. PrincipalType *string `field:"required" json:"principalType" yaml:"principalType"` // TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012). TargetId *string `field:"required" json:"targetId" yaml:"targetId"` // The entity type for which the assignment will be created. TargetType *string `field:"required" json:"targetType" yaml:"targetType"` }
Properties for defining a `CfnAssignment`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnAssignmentProps := &CfnAssignmentProps{ InstanceArn: jsii.String("instanceArn"), PermissionSetArn: jsii.String("permissionSetArn"), PrincipalId: jsii.String("principalId"), PrincipalType: jsii.String("principalType"), TargetId: jsii.String("targetId"), TargetType: jsii.String("targetType"), }
type CfnInstanceAccessControlAttributeConfiguration ¶
type CfnInstanceAccessControlAttributeConfiguration interface { awscdk.CfnResource awscdk.IInspectable // Lists the attributes that are configured for ABAC in the specified IAM Identity Center instance. AccessControlAttributes() interface{} SetAccessControlAttributes(val interface{}) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The ARN of the IAM Identity Center instance under which the operation will be executed. InstanceArn() *string SetInstanceArn(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::SSO::InstanceAccessControlAttributeConfiguration`.
Enables the attribute-based access control (ABAC) feature for the specified IAM Identity Center instance. You can also specify new attributes to add to your ABAC configuration during the enabling process. For more information about ABAC, see [Attribute-Based Access Control](https://docs.aws.amazon.com//singlesignon/latest/userguide/abac.html) in the *IAM Identity Center User Guide* .
> The `InstanceAccessControlAttributeConfiguration` property has been deprecated but is still supported for backwards compatibility purposes. We recommend that you use the `AccessControlAttributes` property instead.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnInstanceAccessControlAttributeConfiguration := awscdk.Aws_sso.NewCfnInstanceAccessControlAttributeConfiguration(this, jsii.String("MyCfnInstanceAccessControlAttributeConfiguration"), &CfnInstanceAccessControlAttributeConfigurationProps{ InstanceArn: jsii.String("instanceArn"), // the properties below are optional AccessControlAttributes: []interface{}{ &AccessControlAttributeProperty{ Key: jsii.String("key"), Value: &AccessControlAttributeValueProperty{ Source: []*string{ jsii.String("source"), }, }, }, }, })
func NewCfnInstanceAccessControlAttributeConfiguration ¶
func NewCfnInstanceAccessControlAttributeConfiguration(scope constructs.Construct, id *string, props *CfnInstanceAccessControlAttributeConfigurationProps) CfnInstanceAccessControlAttributeConfiguration
Create a new `AWS::SSO::InstanceAccessControlAttributeConfiguration`.
type CfnInstanceAccessControlAttributeConfigurationProps ¶
type CfnInstanceAccessControlAttributeConfigurationProps struct { // The ARN of the IAM Identity Center instance under which the operation will be executed. InstanceArn *string `field:"required" json:"instanceArn" yaml:"instanceArn"` // Lists the attributes that are configured for ABAC in the specified IAM Identity Center instance. AccessControlAttributes interface{} `field:"optional" json:"accessControlAttributes" yaml:"accessControlAttributes"` }
Properties for defining a `CfnInstanceAccessControlAttributeConfiguration`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnInstanceAccessControlAttributeConfigurationProps := &CfnInstanceAccessControlAttributeConfigurationProps{ InstanceArn: jsii.String("instanceArn"), // the properties below are optional AccessControlAttributes: []interface{}{ &AccessControlAttributeProperty{ Key: jsii.String("key"), Value: &AccessControlAttributeValueProperty{ Source: []*string{ jsii.String("source"), }, }, }, }, }
type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeProperty ¶
type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeProperty struct { // The name of the attribute associated with your identities in your identity source. // // This is used to map a specified attribute in your identity source with an attribute in IAM Identity Center . Key *string `field:"required" json:"key" yaml:"key"` // The value used for mapping a specified attribute to an identity source. Value interface{} `field:"required" json:"value" yaml:"value"` }
These are IAM Identity Center identity store attributes that you can configure for use in attributes-based access control (ABAC).
You can create permissions policies that determine who can access your AWS resources based upon the configured attribute values. When you enable ABAC and specify `AccessControlAttributes` , IAM Identity Center passes the attribute values of the authenticated user into IAM for use in policy evaluation.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" accessControlAttributeProperty := &AccessControlAttributeProperty{ Key: jsii.String("key"), Value: &AccessControlAttributeValueProperty{ Source: []*string{ jsii.String("source"), }, }, }
type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeValueProperty ¶
type CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeValueProperty struct { // The identity source to use when mapping a specified attribute to IAM Identity Center . Source *[]*string `field:"required" json:"source" yaml:"source"` }
The value used for mapping a specified attribute to an identity source.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" accessControlAttributeValueProperty := &AccessControlAttributeValueProperty{ Source: []*string{ jsii.String("source"), }, }
type CfnPermissionSet ¶
type CfnPermissionSet interface { awscdk.CfnResource awscdk.IInspectable // The permission set ARN of the permission set, such as `arn:aws:sso:::permissionSet/ins-instanceid/ps-permissionsetid` . AttrPermissionSetArn() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // Specifies the names and paths of the customer managed policies that you have attached to your permission set. CustomerManagedPolicyReferences() interface{} SetCustomerManagedPolicyReferences(val interface{}) // The description of the `PermissionSet` . Description() *string SetDescription(val *string) // The inline policy that is attached to the permission set. // // > For `Length Constraints` , if a valid ARN is provided for a permission set, it is possible for an empty inline policy to be returned. InlinePolicy() interface{} SetInlinePolicy(val interface{}) // The ARN of the IAM Identity Center instance under which the operation will be executed. // // For more information about ARNs, see [Amazon Resource Names (ARNs) and AWS Service Namespaces](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* . InstanceArn() *string SetInstanceArn(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // A structure that stores the details of the AWS managed policy. ManagedPolicies() *[]*string SetManagedPolicies(val *[]*string) // The name of the permission set. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions boundary. // // Specify either `CustomerManagedPolicyReference` to use the name and path of a customer managed policy, or `ManagedPolicyArn` to use the ARN of an AWS managed policy. A permissions boundary represents the maximum permissions that any policy can grant your role. For more information, see [Permissions boundaries for IAM entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) in the *IAM User Guide* . // // > Policies used as permissions boundaries don't provide permissions. You must also attach an IAM policy to the role. To learn how the effective permissions for a role are evaluated, see [IAM JSON policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) in the *IAM User Guide* . PermissionsBoundary() interface{} SetPermissionsBoundary(val interface{}) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // Used to redirect users within the application during the federation authentication process. RelayStateType() *string SetRelayStateType(val *string) // The length of time that the application user sessions are valid for in the ISO-8601 standard. SessionDuration() *string SetSessionDuration(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The tags to attach to the new `PermissionSet` . Tags() awscdk.TagManager // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::SSO::PermissionSet`.
Specifies a permission set within a specified IAM Identity Center instance.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var inlinePolicy interface{} cfnPermissionSet := awscdk.Aws_sso.NewCfnPermissionSet(this, jsii.String("MyCfnPermissionSet"), &CfnPermissionSetProps{ InstanceArn: jsii.String("instanceArn"), Name: jsii.String("name"), // the properties below are optional CustomerManagedPolicyReferences: []interface{}{ &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }, }, Description: jsii.String("description"), InlinePolicy: inlinePolicy, ManagedPolicies: []*string{ jsii.String("managedPolicies"), }, PermissionsBoundary: &PermissionsBoundaryProperty{ CustomerManagedPolicyReference: &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }, ManagedPolicyArn: jsii.String("managedPolicyArn"), }, RelayStateType: jsii.String("relayStateType"), SessionDuration: jsii.String("sessionDuration"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, })
func NewCfnPermissionSet ¶
func NewCfnPermissionSet(scope constructs.Construct, id *string, props *CfnPermissionSetProps) CfnPermissionSet
Create a new `AWS::SSO::PermissionSet`.
type CfnPermissionSetProps ¶
type CfnPermissionSetProps struct { // The ARN of the IAM Identity Center instance under which the operation will be executed. // // For more information about ARNs, see [Amazon Resource Names (ARNs) and AWS Service Namespaces](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* . InstanceArn *string `field:"required" json:"instanceArn" yaml:"instanceArn"` // The name of the permission set. Name *string `field:"required" json:"name" yaml:"name"` // Specifies the names and paths of the customer managed policies that you have attached to your permission set. CustomerManagedPolicyReferences interface{} `field:"optional" json:"customerManagedPolicyReferences" yaml:"customerManagedPolicyReferences"` // The description of the `PermissionSet` . Description *string `field:"optional" json:"description" yaml:"description"` // The inline policy that is attached to the permission set. // // > For `Length Constraints` , if a valid ARN is provided for a permission set, it is possible for an empty inline policy to be returned. InlinePolicy interface{} `field:"optional" json:"inlinePolicy" yaml:"inlinePolicy"` // A structure that stores the details of the AWS managed policy. ManagedPolicies *[]*string `field:"optional" json:"managedPolicies" yaml:"managedPolicies"` // Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions boundary. // // Specify either `CustomerManagedPolicyReference` to use the name and path of a customer managed policy, or `ManagedPolicyArn` to use the ARN of an AWS managed policy. A permissions boundary represents the maximum permissions that any policy can grant your role. For more information, see [Permissions boundaries for IAM entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) in the *IAM User Guide* . // // > Policies used as permissions boundaries don't provide permissions. You must also attach an IAM policy to the role. To learn how the effective permissions for a role are evaluated, see [IAM JSON policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) in the *IAM User Guide* . PermissionsBoundary interface{} `field:"optional" json:"permissionsBoundary" yaml:"permissionsBoundary"` // Used to redirect users within the application during the federation authentication process. RelayStateType *string `field:"optional" json:"relayStateType" yaml:"relayStateType"` // The length of time that the application user sessions are valid for in the ISO-8601 standard. SessionDuration *string `field:"optional" json:"sessionDuration" yaml:"sessionDuration"` // The tags to attach to the new `PermissionSet` . Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnPermissionSet`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var inlinePolicy interface{} cfnPermissionSetProps := &CfnPermissionSetProps{ InstanceArn: jsii.String("instanceArn"), Name: jsii.String("name"), // the properties below are optional CustomerManagedPolicyReferences: []interface{}{ &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }, }, Description: jsii.String("description"), InlinePolicy: inlinePolicy, ManagedPolicies: []*string{ jsii.String("managedPolicies"), }, PermissionsBoundary: &PermissionsBoundaryProperty{ CustomerManagedPolicyReference: &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }, ManagedPolicyArn: jsii.String("managedPolicyArn"), }, RelayStateType: jsii.String("relayStateType"), SessionDuration: jsii.String("sessionDuration"), Tags: []cfnTag{ &cfnTag{ Key: jsii.String("key"), Value: jsii.String("value"), }, }, }
type CfnPermissionSet_CustomerManagedPolicyReferenceProperty ¶ added in v2.34.0
type CfnPermissionSet_CustomerManagedPolicyReferenceProperty struct { // The name of the IAM policy that you have configured in each account where you want to deploy your permission set. Name *string `field:"required" json:"name" yaml:"name"` // The path to the IAM policy that you have configured in each account where you want to deploy your permission set. // // The default is `/` . For more information, see [Friendly names and paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide* . Path *string `field:"optional" json:"path" yaml:"path"` }
Specifies the name and path of a customer managed policy.
You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" customerManagedPolicyReferenceProperty := &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }
type CfnPermissionSet_PermissionsBoundaryProperty ¶ added in v2.34.0
type CfnPermissionSet_PermissionsBoundaryProperty struct { // Specifies the name and path of a customer managed policy. // // You must have an IAM policy that matches the name and path in each AWS account where you want to deploy your permission set. CustomerManagedPolicyReference interface{} `field:"optional" json:"customerManagedPolicyReference" yaml:"customerManagedPolicyReference"` // The AWS managed policy ARN that you want to attach to a permission set as a permissions boundary. ManagedPolicyArn *string `field:"optional" json:"managedPolicyArn" yaml:"managedPolicyArn"` }
Specifies the configuration of the AWS managed or customer managed policy that you want to set as a permissions boundary.
Specify either `CustomerManagedPolicyReference` to use the name and path of a customer managed policy, or `ManagedPolicyArn` to use the ARN of an AWS managed policy. A permissions boundary represents the maximum permissions that any policy can grant your role. For more information, see [Permissions boundaries for IAM entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) in the *IAM User Guide* .
> Policies used as permissions boundaries don't provide permissions. You must also attach an IAM policy to the role. To learn how the effective permissions for a role are evaluated, see [IAM JSON policy evaluation logic](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html) in the *IAM User Guide* .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" permissionsBoundaryProperty := &PermissionsBoundaryProperty{ CustomerManagedPolicyReference: &CustomerManagedPolicyReferenceProperty{ Name: jsii.String("name"), // the properties below are optional Path: jsii.String("path"), }, ManagedPolicyArn: jsii.String("managedPolicyArn"), }
Source Files ¶
- CfnAssignment.go
- CfnAssignmentProps.go
- CfnAssignment__checks.go
- CfnInstanceAccessControlAttributeConfiguration.go
- CfnInstanceAccessControlAttributeConfigurationProps.go
- CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeProperty.go
- CfnInstanceAccessControlAttributeConfiguration_AccessControlAttributeValueProperty.go
- CfnInstanceAccessControlAttributeConfiguration__checks.go
- CfnPermissionSet.go
- CfnPermissionSetProps.go
- CfnPermissionSet_CustomerManagedPolicyReferenceProperty.go
- CfnPermissionSet_PermissionsBoundaryProperty.go
- CfnPermissionSet__checks.go
- main.go