@Stability(value=Stable) public static final class CfnResourceShareProps.Builder extends Object implements software.amazon.jsii.Builder<CfnResourceShareProps>
CfnResourceShareProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnResourceShareProps.Builder name(String name)
CfnResourceShareProps.getName()name - Specifies the name of the resource share. This parameter is required.this@Stability(value=Stable) public CfnResourceShareProps.Builder allowExternalPrincipals(Boolean allowExternalPrincipals)
CfnResourceShareProps.getAllowExternalPrincipals()allowExternalPrincipals - Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
A value of true lets you share with individual AWS accounts that are not in your organization. A value of false only has meaning if your account is a member of an AWS Organization. The default value is true .this@Stability(value=Stable) public CfnResourceShareProps.Builder allowExternalPrincipals(IResolvable allowExternalPrincipals)
CfnResourceShareProps.getAllowExternalPrincipals()allowExternalPrincipals - Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
A value of true lets you share with individual AWS accounts that are not in your organization. A value of false only has meaning if your account is a member of an AWS Organization. The default value is true .this@Stability(value=Stable) public CfnResourceShareProps.Builder permissionArns(List<String> permissionArns)
CfnResourceShareProps.getPermissionArns()permissionArns - Specifies the [Amazon Resource Names (ARNs)](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) of the AWS RAM permission to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.this@Stability(value=Stable) public CfnResourceShareProps.Builder principals(List<String> principals)
CfnResourceShareProps.getPrincipals()principals - Specifies a list of one or more principals to associate with the resource share.
You can include the following values:
123456789012arn:aws:organizations::123456789012:organization/o-exampleorgidarn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123arn:aws:iam::123456789012:role/rolenamearn:aws:iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the AWS Resource Access Manager User Guide .
this@Stability(value=Stable) public CfnResourceShareProps.Builder resourceArns(List<String> resourceArns)
CfnResourceShareProps.getResourceArns()resourceArns - Specifies a list of one or more ARNs of the resources to associate with the resource share.this@Stability(value=Stable) public CfnResourceShareProps.Builder tags(List<? extends CfnTag> tags)
CfnResourceShareProps.getTags()tags - Specifies one or more tags to attach to the resource share itself.
It doesn't attach the tags to the resources associated with the resource share.this@Stability(value=Stable) public CfnResourceShareProps build()
build in interface software.amazon.jsii.Builder<CfnResourceShareProps>CfnResourceSharePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.