@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.330Z") @Stability(value=Stable) public interface CfnResourceShareProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ram.*;
CfnResourceShareProps cfnResourceShareProps = CfnResourceShareProps.builder()
.name("name")
// the properties below are optional
.allowExternalPrincipals(false)
.permissionArns(List.of("permissionArns"))
.principals(List.of("principals"))
.resourceArns(List.of("resourceArns"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourceShareProps.Builder
A builder for
CfnResourceShareProps |
static class |
CfnResourceShareProps.Jsii$Proxy
An implementation for
CfnResourceShareProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourceShareProps.Builder |
builder() |
default Object |
getAllowExternalPrincipals()
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
String |
getName()
Specifies the name of the resource share.
|
default List<String> |
getPermissionArns()
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.
|
default List<String> |
getPrincipals()
Specifies a list of one or more principals to associate with the resource share.
|
default List<String> |
getResourceArns()
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
default List<CfnTag> |
getTags()
Specifies one or more tags to attach to the resource share itself.
|
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default Object getAllowExternalPrincipals()
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 .
@Stability(value=Stable) @Nullable default List<String> getPermissionArns()
@Stability(value=Stable) @Nullable default List<String> getPrincipals()
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 .
@Stability(value=Stable) @Nullable default List<String> getResourceArns()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
It doesn't attach the tags to the resources associated with the resource share.
@Stability(value=Stable) static CfnResourceShareProps.Builder builder()
CfnResourceShareProps.Builder of CfnResourceSharePropsCopyright © 2022. All rights reserved.