Skip to content

Creates a cross-account shared resource

Description

Creates a cross-account shared resource. The resource owner makes an offer to share the resource with the principal subscriber (an Amazon Web Services user with a different account than the resource owner).

The following resources support cross-account sharing:

  • HealthOmics variant stores
  • HealthOmics annotation stores
  • Private workflows

Usage

omics_create_share(resourceArn, principalSubscriber, shareName)

Arguments

  • resourceArn

    [required] The ARN of the resource to be shared.

  • principalSubscriber

    [required] The principal subscriber is the account being offered shared access to the resource.

  • shareName

    A name that the owner defines for the share.

Value

A list with the following syntax:

list(
  shareId = "string",
  status = "PENDING"|"ACTIVATING"|"ACTIVE"|"DELETING"|"DELETED"|"FAILED",
  shareName = "string"
)

Request syntax

svc$create_share(
  resourceArn = "string",
  principalSubscriber = "string",
  shareName = "string"
)