@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.329Z") @Stability(value=Stable) public class CfnResourceShare extends CfnResource implements IInspectable
Specifies a resource share.
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.*;
CfnResourceShare cfnResourceShare = CfnResourceShare.Builder.create(this, "MyCfnResourceShare")
.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 | Class and Description |
|---|---|
static class |
CfnResourceShare.Builder
A fluent builder for
CfnResourceShare. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnResourceShare(software.constructs.Construct scope,
String id,
CfnResourceShareProps props)
Create a new `AWS::RAM::ResourceShare`.
|
protected |
CfnResourceShare(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResourceShare(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAllowExternalPrincipals()
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the resource share.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getName()
Specifies the name of the resource share.
|
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.
|
List<String> |
getPrincipals()
Specifies a list of one or more principals to associate with the resource share.
|
List<String> |
getResourceArns()
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
TagManager |
getTags()
Specifies one or more tags to attach to the resource share itself.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAllowExternalPrincipals(Boolean value)
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
void |
setAllowExternalPrincipals(IResolvable value)
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
|
void |
setName(String value)
Specifies the name of the resource share.
|
void |
setPermissionArns(List<String> value)
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.
|
void |
setPrincipals(List<String> value)
Specifies a list of one or more principals to associate with the resource share.
|
void |
setResourceArns(List<String> value)
Specifies a list of one or more ARNs of the resources to associate with the resource share.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnResourceShare(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceShare(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnResourceShare(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnResourceShareProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
It doesn't attach the tags to the resources associated with the resource share.
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public 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)
public void setAllowExternalPrincipals(@Nullable
Boolean value)
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)
public void setAllowExternalPrincipals(@Nullable
IResolvable value)
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 public List<String> getPermissionArns()
@Stability(value=Stable)
public void setPermissionArns(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public 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)
public void setPrincipals(@Nullable
List<String> value)
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 public List<String> getResourceArns()
Copyright © 2022. All rights reserved.