ResilienceHubV2 / Client / create_input_source
create_input_source¶
- ResilienceHubV2.Client.create_input_source(**kwargs)¶
Creates an input source for a service.
See also: AWS API Documentation
Request Syntax
response = client.create_input_source( serviceArn='string', resourceConfiguration={ 'resourceTags': [ { 'key': 'string', 'values': [ 'string', ] }, ], 'cfnStackArn': 'string', 'tfStateFileUrl': 'string', 'eks': { 'clusterArn': 'string', 'namespaces': [ 'string', ] }, 'designFileS3Url': 'string' }, clientToken='string' )
- Parameters:
serviceArn (string) –
[REQUIRED]
ARN identifier.
resourceConfiguration (dict) –
[REQUIRED]
Resource configuration for an input source. Provide exactly one field.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
resourceTags,cfnStackArn,tfStateFileUrl,eks,designFileS3Url.resourceTags (list) –
The resource tags for tag-based resource discovery.
(dict) –
A tag key-value pair used for resource discovery.
key (string) – [REQUIRED]
Tag key.
values (list) – [REQUIRED]
The list of tag values.
(string) –
Tag value.
cfnStackArn (string) –
ARN identifier.
tfStateFileUrl (string) –
S3 URL — virtual hosted-style or s3:// URI.
eks (dict) –
The Amazon EKS configuration for resource discovery.
clusterArn (string) – [REQUIRED]
ARN identifier.
namespaces (list) – [REQUIRED]
The list of Kubernetes namespaces within the EKS cluster.
(string) –
Kubernetes namespace name (RFC 1123 Label).
designFileS3Url (string) –
S3 URL — virtual hosted-style or s3:// URI.
clientToken (string) –
Idempotency token.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'serviceArn': 'string', 'inputSourceId': 'string' }
Response Structure
(dict) –
serviceArn (string) –
ARN identifier.
inputSourceId (string) –
The unique identifier assigned to the created input source.
Exceptions
ResilienceHubV2.Client.exceptions.InternalServerExceptionResilienceHubV2.Client.exceptions.ResourceNotFoundExceptionResilienceHubV2.Client.exceptions.ValidationExceptionResilienceHubV2.Client.exceptions.ConflictExceptionResilienceHubV2.Client.exceptions.ServiceQuotaExceededExceptionResilienceHubV2.Client.exceptions.AccessDeniedException