Skip to main content

input_sources

Creates, updates, deletes, gets or lists an input_sources resource.

Overview

Nameinput_sources
TypeResource
Idaws.resiliencehubv2.input_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cfn_stack_arnstringARN identifier. (pattern: <code>arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}</code>)
created_atstring (date-time)The timestamp when the input source was created.
design_file_s3_urlstringS3 URL — virtual hosted-style or s3:​// URI. (pattern: <code>((https:​//([^/]+).s3[^/]*.[^/]+)|(s3:​//([^/]+)))/\S{1,2000}</code>)
eksobjectThe Amazon EKS configuration, if this input source uses EKS.
input_source_idstringThe unique identifier of the input source. (pattern: <code>\S{1,255}</code>)
resource_tagsarrayThe resource tags used for discovery, if this input source uses tags.
tf_state_file_urlstringS3 URL — virtual hosted-style or s3:​// URI. (pattern: <code>((https:​//([^/]+).s3[^/]*.[^/]+)|(s3:​//([^/]+)))/\S{1,2000}</code>)
type_stringThe type of the input source. (CFN_STACK, TAGS, EKS, TERRAFORM, DESIGN_FILE, MONITORING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_input_sourcesselectserviceArn, regiontype, maxResults, nextTokenLists input sources for a service.
create_input_sourceinsertregion, serviceArn, resourceConfigurationCreates an input source for a service.
delete_input_sourcedeleteregionDeletes an input source.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
serviceArnstring
maxResultsinteger
nextTokenstring
typestringFilter input sources by type.

SELECT examples

Lists input sources for a service.

SELECT
cfn_stack_arn,
created_at,
design_file_s3_url,
eks,
input_source_id,
resource_tags,
tf_state_file_url,
type_
FROM aws.resiliencehubv2.input_sources
WHERE serviceArn = '{{ serviceArn }}' -- required
AND region = '{{ region }}' -- required
AND type = '{{ type }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates an input source for a service.

INSERT INTO aws.resiliencehubv2.input_sources (
serviceArn,
resourceConfiguration,
clientToken,
region
)
SELECT
'{{ serviceArn }}' /* required */,
'{{ resourceConfiguration }}' /* required */,
'{{ clientToken }}',
'{{ region }}'
RETURNING
input_source_id,
service_arn
;

DELETE examples

Deletes an input source.

DELETE FROM aws.resiliencehubv2.input_sources
WHERE region = '{{ region }}' --required
;