create_accessor
async
¶
create_accessor(
client_request_token: ClientRequestTokenString,
accessor_type: AccessorType,
*,
config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
tags: Optional[InputTagMap] = None,
network_type: Optional[AccessorNetworkType] = None,
) -> CreateAccessorOutput
Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access. The accessor contains information required for token based access.
Parameters:
-
client_request_token(ClientRequestTokenString) –This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than once. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon Web Services CLI.
-
accessor_type(AccessorType) –The type of accessor.
Currently, accessor type is restricted to
BILLING_TOKEN. -
tags(Optional[InputTagMap], default:None) –Tags to assign to the Accessor.
Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.
For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
-
network_type(Optional[AccessorNetworkType], default:None) –The blockchain network that the
Accessortoken is created for.-
Use the actual
networkTypevalue for the blockchain network that you are creating theAccessortoken for. -
With the shut down of the Ethereum Goerli and Polygon Mumbai Testnet networks the following
networkTypevalues are no longer available for selection and use.-
ETHEREUM_MAINNET_AND_GOERLI -
ETHEREUM_GOERLI -
POLYGON_MUMBAI
However, your existing
Accessortokens with thesenetworkTypevalues will remain unchanged. -
-
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServiceErrorException–The request processing has failed because of an unknown error, exception or failure.
-
InvalidRequestException–The action or operation requested is invalid. Verify that the action is typed correctly.
-
ResourceAlreadyExistsException–A resource request is issued for a resource that already exists.
-
ResourceLimitExceededException–The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits.
-
ThrottlingException–The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
-
TooManyTagsException– -
UnknownServiceError–The service returned an error code this client does not model.