ShareOptions

class aws_cdk.aws_servicecatalogappregistry_alpha.ShareOptions(*, name, accounts=None, organization_arns=None, roles=None, share_permission=None, users=None)

Bases: object

(experimental) The options that are passed into a share of an Application or Attribute Group.

Parameters:
  • name (str) – (experimental) Name of the share.

  • accounts (Optional[Sequence[str]]) – (experimental) A list of AWS accounts that the application will be shared with. Default: - No accounts specified for share

  • organization_arns (Optional[Sequence[str]]) – (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

  • roles (Optional[Sequence[IRole]]) – (experimental) A list of AWS IAM roles that the application will be shared with. Default: - No IAM roles specified for share

  • share_permission (Union[str, SharePermission, None]) – (experimental) An option to manage access to the application or attribute group. Default: - Principals will be assigned read only permissions on the application or attribute group.

  • users (Optional[Sequence[IUser]]) – (experimental) A list of AWS IAM users that the application will be shared with. Default: - No IAM Users specified for share

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_iam as iam
# application: appreg.Application
# my_role: iam.IRole
# my_user: iam.IUser

application.share_application("MyShareId",
    name="MyShare",
    accounts=["123456789012"],
    organization_arns=["arn:aws:organizations::123456789012:organization/o-my-org-id"],
    roles=[my_role],
    users=[my_user]
)

Attributes

accounts

(experimental) A list of AWS accounts that the application will be shared with.

Default:
  • No accounts specified for share

Stability:

experimental

name

(experimental) Name of the share.

Stability:

experimental

organization_arns

(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

Stability:

experimental

roles

(experimental) A list of AWS IAM roles that the application will be shared with.

Default:
  • No IAM roles specified for share

Stability:

experimental

share_permission

(experimental) An option to manage access to the application or attribute group.

Default:
  • Principals will be assigned read only permissions on the application or attribute group.

Stability:

experimental

users

(experimental) A list of AWS IAM users that the application will be shared with.

Default:
  • No IAM Users specified for share

Stability:

experimental