Class CfnResourceSharePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ram.CfnResourceSharePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceSharePropsMixin>
- Enclosing class:
CfnResourceSharePropsMixin
@Stability(Stable)
public static final class CfnResourceSharePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceSharePropsMixin>
A fluent builder for
CfnResourceSharePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionallowExternalPrincipals(Boolean allowExternalPrincipals) Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.allowExternalPrincipals(IResolvable allowExternalPrincipals) Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.build()create()create(CfnPropertyMixinOptions options) Specifies the name of the resource share.permissionArns(List<String> permissionArns) Specifies the Amazon Resource Names (ARNs) of the AWS RAM permission to associate with the resource share.principals(List<String> principals) Specifies the principals to associate with the resource share.resourceArns(List<String> resourceArns) Specifies a list of one or more ARNs of the resources to associate with the resource share.Specifies from which source accounts the service principal has access to the resources in this resource share.Specifies one or more tags to attach to the resource share itself.
-
Method Details
-
create
@Stability(Stable) public static CfnResourceSharePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnResourceSharePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnResourceSharePropsMixin.Builder.
-
allowExternalPrincipals
@Stability(Stable) public CfnResourceSharePropsMixin.Builder allowExternalPrincipals(Boolean allowExternalPrincipals) Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.A value of
truelets you share with individual AWS accounts that are not in your organization. A value offalseonly has meaning if your account is a member of an AWS Organization. The default value istrue.- Parameters:
allowExternalPrincipals- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. This parameter is required.- Returns:
this- See Also:
-
allowExternalPrincipals
@Stability(Stable) public CfnResourceSharePropsMixin.Builder allowExternalPrincipals(IResolvable allowExternalPrincipals) Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.A value of
truelets you share with individual AWS accounts that are not in your organization. A value offalseonly has meaning if your account is a member of an AWS Organization. The default value istrue.- Parameters:
allowExternalPrincipals- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. This parameter is required.- Returns:
this- See Also:
-
name
Specifies the name of the resource share.- Parameters:
name- Specifies the name of the resource share. This parameter is required.- Returns:
this- See Also:
-
permissionArns
@Stability(Stable) public CfnResourceSharePropsMixin.Builder permissionArns(List<String> permissionArns) Specifies the Amazon Resource Names (ARNs) 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.- Parameters:
permissionArns- Specifies the Amazon Resource Names (ARNs) 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 parameter is required.- Returns:
this- See Also:
-
principals
Specifies the principals to associate with the resource share. The possible values are:.- An AWS account ID
- An Amazon Resource Name (ARN) of an organization in AWS Organizations
- An ARN of an organizational unit (OU) in AWS Organizations
- An ARN of an IAM role
- An ARN of an IAM user
Not all resource types can be shared with IAM roles and users. For more information, see the column Can share with IAM roles and users in the tables on Shareable AWS resources in the AWS Resource Access Manager User Guide .
- Parameters:
principals- Specifies the principals to associate with the resource share. The possible values are:. This parameter is required.- Returns:
this- See Also:
-
resourceArns
@Stability(Stable) public CfnResourceSharePropsMixin.Builder resourceArns(List<String> resourceArns) Specifies a list of one or more ARNs of the resources to associate with the resource share.- Parameters:
resourceArns- Specifies a list of one or more ARNs of the resources to associate with the resource share. This parameter is required.- Returns:
this- See Also:
-
sources
Specifies from which source accounts the service principal has access to the resources in this resource share.- Parameters:
sources- Specifies from which source accounts the service principal has access to the resources in this resource share. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
tags- Specifies one or more tags to attach to the resource share itself. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceSharePropsMixin>- Returns:
- a newly built instance of
CfnResourceSharePropsMixin.
-