Class CfnResourceShareMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ram.CfnResourceShareMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceShareMixinProps>
- Enclosing interface:
CfnResourceShareMixinProps
@Stability(Stable)
public static final class CfnResourceShareMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceShareMixinProps>
A builder for
CfnResourceShareMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowExternalPrincipals(Boolean allowExternalPrincipals) Sets the value ofCfnResourceShareMixinProps.getAllowExternalPrincipals()allowExternalPrincipals(IResolvable allowExternalPrincipals) Sets the value ofCfnResourceShareMixinProps.getAllowExternalPrincipals()build()Builds the configured instance.Sets the value ofCfnResourceShareMixinProps.getName()permissionArns(List<String> permissionArns) Sets the value ofCfnResourceShareMixinProps.getPermissionArns()principals(List<String> principals) Sets the value ofCfnResourceShareMixinProps.getPrincipals()resourceArns(List<String> resourceArns) Sets the value ofCfnResourceShareMixinProps.getResourceArns()Sets the value ofCfnResourceShareMixinProps.getSources()Sets the value ofCfnResourceShareMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowExternalPrincipals
@Stability(Stable) public CfnResourceShareMixinProps.Builder allowExternalPrincipals(Boolean allowExternalPrincipals) Sets the value ofCfnResourceShareMixinProps.getAllowExternalPrincipals()- Parameters:
allowExternalPrincipals- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. A value oftruelets 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.- Returns:
this
-
allowExternalPrincipals
@Stability(Stable) public CfnResourceShareMixinProps.Builder allowExternalPrincipals(IResolvable allowExternalPrincipals) Sets the value ofCfnResourceShareMixinProps.getAllowExternalPrincipals()- Parameters:
allowExternalPrincipals- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. A value oftruelets 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.- Returns:
this
-
name
Sets the value ofCfnResourceShareMixinProps.getName()- Parameters:
name- Specifies the name of the resource share.- Returns:
this
-
permissionArns
@Stability(Stable) public CfnResourceShareMixinProps.Builder permissionArns(List<String> permissionArns) Sets the value ofCfnResourceShareMixinProps.getPermissionArns()- 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.- Returns:
this
-
principals
Sets the value ofCfnResourceShareMixinProps.getPrincipals()- Parameters:
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 .
- Returns:
this
-
resourceArns
@Stability(Stable) public CfnResourceShareMixinProps.Builder resourceArns(List<String> resourceArns) Sets the value ofCfnResourceShareMixinProps.getResourceArns()- Parameters:
resourceArns- Specifies a list of one or more ARNs of the resources to associate with the resource share.- Returns:
this
-
sources
Sets the value ofCfnResourceShareMixinProps.getSources()- Parameters:
sources- Specifies from which source accounts the service principal has access to the resources in this resource share.- Returns:
this
-
tags
Sets the value ofCfnResourceShareMixinProps.getTags()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceShareMixinProps>- Returns:
- a new instance of
CfnResourceShareMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-