Interface ShareOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ShareOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:52.101Z")
@Stability(Experimental)
public interface ShareOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) The options that are passed into a share of an Application or Attribute Group.
Example:
import software.amazon.awscdk.services.iam.*;
Application application;
IRole myRole;
IUser myUser;
application.shareApplication("MyShareId", ShareOptions.builder()
.name("MyShare")
.accounts(List.of("123456789012"))
.organizationArns(List.of("arn:aws:organizations::123456789012:organization/o-my-org-id"))
.roles(List.of(myRole))
.users(List.of(myUser))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forShareOptionsstatic final classAn implementation forShareOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareOptions.Builderbuilder()(experimental) A list of AWS accounts that the application will be shared with.getName()(experimental) Name of the share.(experimental) A list of AWS Organization or Organizational Units (OUs) ARNs that the application will be shared with.getRoles()(experimental) A list of AWS IAM roles that the application will be shared with.default Object(experimental) An option to manage access to the application or attribute group.getUsers()(experimental) A list of AWS IAM users that the application will be shared with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
(experimental) Name of the share. -
getAccounts
(experimental) A list of AWS accounts that the application will be shared with.Default: - No accounts specified for share
-
getOrganizationArns
(experimental) A list of AWS Organization or Organizational Units (OUs) ARNs that the application will be shared with.Default: - No AWS Organizations or OUs specified for share
-
getRoles
(experimental) A list of AWS IAM roles that the application will be shared with.Default: - No IAM roles specified for share
-
getUsers
(experimental) A list of AWS IAM users that the application will be shared with.Default: - No IAM Users specified for share
-
builder
- Returns:
- a
ShareOptions.BuilderofShareOptions
-