Skip to content

Create Subscription Grant

datazone_create_subscription_grant R Documentation

Creates a subsscription grant in Amazon DataZone

Description

Creates a subsscription grant in Amazon DataZone.

Usage

datazone_create_subscription_grant(assetTargetNames, clientToken,
  domainIdentifier, environmentIdentifier, grantedEntity,
  subscriptionTargetIdentifier)

Arguments

assetTargetNames

The names of the assets for which the subscription grant is created.

clientToken

A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

domainIdentifier

[required] The ID of the Amazon DataZone domain in which the subscription grant is created.

environmentIdentifier

[required] The ID of the environment in which the subscription grant is created.

grantedEntity

[required] The entity to which the subscription is to be granted.

subscriptionTargetIdentifier

[required] The ID of the subscription target for which the subscription grant is created.

Value

A list with the following syntax:

list(
  assets = list(
    list(
      assetId = "string",
      assetRevision = "string",
      failureCause = list(
        message = "string"
      ),
      failureTimestamp = as.POSIXct(
        "2015-01-01"
      ),
      grantedTimestamp = as.POSIXct(
        "2015-01-01"
      ),
      status = "GRANT_PENDING"|"REVOKE_PENDING"|"GRANT_IN_PROGRESS"|"REVOKE_IN_PROGRESS"|"GRANTED"|"REVOKED"|"GRANT_FAILED"|"REVOKE_FAILED",
      targetName = "string"
    )
  ),
  createdAt = as.POSIXct(
    "2015-01-01"
  ),
  createdBy = "string",
  domainId = "string",
  grantedEntity = list(
    listing = list(
      id = "string",
      revision = "string"
    )
  ),
  id = "string",
  status = "PENDING"|"IN_PROGRESS"|"GRANT_FAILED"|"REVOKE_FAILED"|"GRANT_AND_REVOKE_FAILED"|"COMPLETED"|"INACCESSIBLE",
  subscriptionId = "string",
  subscriptionTargetId = "string",
  updatedAt = as.POSIXct(
    "2015-01-01"
  ),
  updatedBy = "string"
)

Request syntax

svc$create_subscription_grant(
  assetTargetNames = list(
    list(
      assetId = "string",
      targetName = "string"
    )
  ),
  clientToken = "string",
  domainIdentifier = "string",
  environmentIdentifier = "string",
  grantedEntity = list(
    listing = list(
      identifier = "string",
      revision = "string"
    )
  ),
  subscriptionTargetIdentifier = "string"
)