Skip to main content

accessors

Creates, updates, deletes or gets an accessor resource or lists accessors in a region

Overview

Nameaccessors
TypeResource
DescriptionDefinition of AWS::ManagedBlockchain::com.amazonaws.taiga.webservice.api#Accessor Resource Type
Idawscc.managedblockchain.accessors

Fields

NameDatatypeDescription
arnstring
billing_tokenstring
creation_datestring
idstring
statusstring
accessor_typestring
network_typestring
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::ManagedBlockchain::Accessor.

Methods

NameResourceAccessible byRequired Params
create_resourceaccessorsINSERTAccessorType, region
delete_resourceaccessorsDELETEIdentifier, region
update_resourceaccessorsUPDATEIdentifier, PatchDocument, region
list_resourcesaccessors_list_onlySELECTregion
get_resourceaccessorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual accessor.

SELECT
region,
arn,
billing_token,
creation_date,
id,
status,
accessor_type,
network_type,
tags
FROM awscc.managedblockchain.accessors
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new accessor resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.managedblockchain.accessors (
AccessorType,
region
)
SELECT
'{{ accessor_type }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a accessor resource, using stack-deploy.

/*+ update */
UPDATE awscc.managedblockchain.accessors
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.managedblockchain.accessors
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the accessors resource, the following permissions are required:

managedblockchain:CreateAccessor,
managedblockchain:TagResource,
managedblockchain:GetAccessor