Skip to content
v2.278.0

ResourceShareConfigurationProperty Struct ​

The configuration for a resource share.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ram as ram } from 'aws-cdk-lib';
const resourceShareConfigurationProperty: ram.CfnResourceShare.ResourceShareConfigurationProperty = {
  exclusiveAccountAccess: false,
  retainSharingOnAccountLeaveOrganization: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ram as ram

resource_share_configuration_property = ram.CfnResourceShare.ResourceShareConfigurationProperty(
    exclusive_account_access=False,
    retain_sharing_on_account_leave_organization=False
)
java
// 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.*;

ResourceShareConfigurationProperty resourceShareConfigurationProperty = ResourceShareConfigurationProperty.builder()
        .exclusiveAccountAccess(false)
        .retainSharingOnAccountLeaveOrganization(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.RAM;

var resourceShareConfigurationProperty = new ResourceShareConfigurationProperty {
    ExclusiveAccountAccess = false,
    RetainSharingOnAccountLeaveOrganization = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

resourceShareConfigurationProperty := &ResourceShareConfigurationProperty{
	ExclusiveAccountAccess: jsii.Boolean(false),
	RetainSharingOnAccountLeaveOrganization: jsii.Boolean(false),
}

Properties ​

exclusiveAccountAccessoptionalboolean | IResolvableexclusive_account_accessoptionaltyping.Union[bool, IResolvable]exclusiveAccountAccessoptionalBooleanExclusiveAccountAccessoptionalboolExclusiveAccountAccessoptionalinterface{} #
The resource share restricts access to an account.
retainSharingOnAccountLeaveOrganizationoptionalboolean | IResolvableretain_sharing_on_account_leave_organizationoptionaltyping.Union[bool, IResolvable]retainSharingOnAccountLeaveOrganizationoptionalBooleanRetainSharingOnAccountLeaveOrganizationoptionalboolRetainSharingOnAccountLeaveOrganizationoptionalinterface{} #
Specifies whether the consumer account retains access to the resource share after leaving the organization.