cross_account_authorizations
Creates, updates, deletes, gets or lists a cross_account_authorizations resource.
Overview
| Name | cross_account_authorizations |
| Type | Resource |
| Id | aws.route53_recovery_readiness.cross_account_authorizations |
Fields
The following fields are returned by SELECT queries:
- list_cross_account_authorizations
| Name | Datatype | Description |
|---|---|---|
cross_account_authorization | string | A list of cross-account authorizations. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_cross_account_authorizations | select | region | maxResults, nextToken | Lists the cross-account readiness authorizations that are in place for an account. |
create_cross_account_authorization | insert | region, CrossAccountAuthorization | Creates a cross-account readiness authorization. This lets you authorize another account to work with Route 53 Application Recovery Controller, for example, to check the readiness status of resources in a separate account. | |
delete_cross_account_authorization | delete | cross_account_authorization, region | Deletes cross account readiness authorization. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
cross_account_authorization | string | The cross-account authorization. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The number of objects that you want to return with this call. |
nextToken | string | The token that identifies which batch of results you want to see. |
SELECT examples
- list_cross_account_authorizations
Lists the cross-account readiness authorizations that are in place for an account.
SELECT
cross_account_authorization
FROM aws.route53_recovery_readiness.cross_account_authorizations
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;
INSERT examples
- create_cross_account_authorization
- Manifest
Creates a cross-account readiness authorization. This lets you authorize another account to work with Route 53 Application Recovery Controller, for example, to check the readiness status of resources in a separate account.
INSERT INTO aws.route53_recovery_readiness.cross_account_authorizations (
CrossAccountAuthorization,
region
)
SELECT
'{{ CrossAccountAuthorization }}' /* required */,
'{{ region }}'
RETURNING
cross_account_authorization
;
# Description fields are for documentation purposes
- name: cross_account_authorizations
props:
- name: region
value: "{{ region }}"
description: Required parameter for the cross_account_authorizations resource.
- name: CrossAccountAuthorization
value: "{{ CrossAccountAuthorization }}"
description: |
CrossAccountAuthorization
DELETE examples
- delete_cross_account_authorization
Deletes cross account readiness authorization.
DELETE FROM aws.route53_recovery_readiness.cross_account_authorizations
WHERE cross_account_authorization = '{{ cross_account_authorization }}' --required
AND region = '{{ region }}' --required
;