accessors
Creates, updates, deletes or gets an accessor resource or lists accessors in a region
Overview
| Name | accessors |
| Type | Resource |
| Description | Definition of AWS::ManagedBlockchain::com.amazonaws.taiga.webservice.api#Accessor Resource Type |
| Id | awscc.managedblockchain.accessors |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | |
billing_token | string | |
creation_date | string | |
id | string | |
status | string | |
accessor_type | string | |
network_type | string | |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | |
region | string | AWS region. |
For more information, see AWS::ManagedBlockchain::Accessor.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | accessors | INSERT | AccessorType, region |
delete_resource | accessors | DELETE | Identifier, region |
update_resource | accessors | UPDATE | Identifier, PatchDocument, region |
list_resources | accessors_list_only | SELECT | region |
get_resource | accessors | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all accessors in a region.
SELECT
region,
id
FROM awscc.managedblockchain.accessors_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new accessor resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.managedblockchain.accessors (
AccessorType,
region
)
SELECT
'{{ accessor_type }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.managedblockchain.accessors (
AccessorType,
NetworkType,
Tags,
region
)
SELECT
'{{ accessor_type }}',
'{{ network_type }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: accessor
props:
- name: accessor_type
value: '{{ accessor_type }}'
- name: network_type
value: '{{ network_type }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
managedblockchain:CreateAccessor,
managedblockchain:TagResource,
managedblockchain:GetAccessor
managedblockchain:GetAccessor
managedblockchain:GetAccessor,
managedblockchain:CreateAccessor,
managedblockchain:TagResource,
managedblockchain:UntagResource
managedblockchain:DeleteAccessor
managedblockchain:ListAccessors