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 | aws.managedblockchain.accessors |
Fields
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. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | AccessorType, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all accessors
in a region.
SELECT
region,
arn,
billing_token,
creation_date,
id,
status,
accessor_type,
network_type,
tags
FROM aws.managedblockchain.accessors
WHERE region = 'us-east-1';
Gets all properties from an individual accessor
.
SELECT
region,
arn,
billing_token,
creation_date,
id,
status,
accessor_type,
network_type,
tags
FROM aws.managedblockchain.accessors
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
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 aws.managedblockchain.accessors (
AccessorType,
region
)
SELECT
'{{ AccessorType }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.managedblockchain.accessors (
AccessorType,
NetworkType,
Tags,
region
)
SELECT
'{{ AccessorType }}',
'{{ NetworkType }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: accessor
props:
- name: AccessorType
value: '{{ AccessorType }}'
- name: NetworkType
value: '{{ NetworkType }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.managedblockchain.accessors
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the accessors
resource, the following permissions are required:
Create
managedblockchain:CreateAccessor,
managedblockchain:TagResource,
managedblockchain:GetAccessor
Read
managedblockchain:GetAccessor
Update
managedblockchain:GetAccessor,
managedblockchain:CreateAccessor,
managedblockchain:TagResource,
managedblockchain:UntagResource
Delete
managedblockchain:DeleteAccessor
List
managedblockchain:ListAccessors