public static final class CfnResourceShare.Builder
extends java.lang.Object
CfnResourceShare
.Modifier and Type | Method and Description |
---|---|
CfnResourceShare.Builder |
allowExternalPrincipals(java.lang.Boolean allowExternalPrincipals)
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
CfnResourceShare.Builder |
allowExternalPrincipals(IResolvable allowExternalPrincipals)
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
CfnResourceShare |
build() |
static CfnResourceShare.Builder |
create(Construct scope,
java.lang.String id) |
CfnResourceShare.Builder |
name(java.lang.String name)
Specifies the name of the resource share.
|
CfnResourceShare.Builder |
permissionArns(java.util.List<java.lang.String> 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.
|
CfnResourceShare.Builder |
principals(java.util.List<java.lang.String> principals)
Specifies a list of one or more principals to associate with the resource share.
|
CfnResourceShare.Builder |
resourceArns(java.util.List<java.lang.String> resourceArns)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
CfnResourceShare.Builder |
tags(java.util.List<? extends CfnTag> tags)
Specifies one or more tags to attach to the resource share itself.
|
public static CfnResourceShare.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnResourceShare.Builder
.public CfnResourceShare.Builder name(java.lang.String name)
name
- Specifies the name of the resource share. This parameter is required.this
public CfnResourceShare.Builder allowExternalPrincipals(java.lang.Boolean allowExternalPrincipals)
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
.
allowExternalPrincipals
- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. This parameter is required.this
public CfnResourceShare.Builder allowExternalPrincipals(IResolvable allowExternalPrincipals)
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
.
allowExternalPrincipals
- Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. This parameter is required.this
public CfnResourceShare.Builder permissionArns(java.util.List<java.lang.String> permissionArns)
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 parameter is required.this
public CfnResourceShare.Builder principals(java.util.List<java.lang.String> principals)
You can include the following values:
123456789012
arn:aws:organizations::123456789012:organization/o-exampleorgid
arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
arn:aws:iam::123456789012:role/rolename
arn: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 .
principals
- Specifies a list of one or more principals to associate with the resource share. This parameter is required.this
public CfnResourceShare.Builder resourceArns(java.util.List<java.lang.String> resourceArns)
resourceArns
- Specifies a list of one or more ARNs of the resources to associate with the resource share. This parameter is required.this
public CfnResourceShare.Builder tags(java.util.List<? extends CfnTag> tags)
It doesn't attach the tags to the resources associated with the resource share.
tags
- Specifies one or more tags to attach to the resource share itself. This parameter is required.this
public CfnResourceShare build()