2021/12/06 - AWS AppSync - 8 new api methods
Changes AWS AppSync now supports custom domain names, allowing you to associate a domain name that you own with an AppSync API in your account.
Lists multiple custom domain names.
See also: AWS API Documentation
Request Syntax
client.list_domain_names(
nextToken='string',
maxResults=123
)
string
The API token.
integer
The maximum number of results that you want the request to return.
dict
Response Syntax
{
'domainNameConfigs': [
{
'domainName': 'string',
'description': 'string',
'certificateArn': 'string',
'appsyncDomainName': 'string',
'hostedZoneId': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
domainNameConfigs (list) --
Lists configurations for multiple domain names.
(dict) --
Describes a configuration for a custom domain.
domainName (string) --
The domain name.
description (string) --
A description of the DomainName configuration.
certificateArn (string) --
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
appsyncDomainName (string) --
The domain name that AppSync provides.
hostedZoneId (string) --
The ID of your Amazon Route 53 hosted zone.
nextToken (string) --
The API token.
Creates a custom DomainName object.
See also: AWS API Documentation
Request Syntax
client.create_domain_name(
domainName='string',
certificateArn='string',
description='string'
)
string
[REQUIRED]
The domain name.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
string
A description of the DomainName .
dict
Response Syntax
{
'domainNameConfig': {
'domainName': 'string',
'description': 'string',
'certificateArn': 'string',
'appsyncDomainName': 'string',
'hostedZoneId': 'string'
}
}
Response Structure
(dict) --
domainNameConfig (dict) --
The configuration for the DomainName .
domainName (string) --
The domain name.
description (string) --
A description of the DomainName configuration.
certificateArn (string) --
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
appsyncDomainName (string) --
The domain name that AppSync provides.
hostedZoneId (string) --
The ID of your Amazon Route 53 hosted zone.
Deletes a custom DomainName object.
See also: AWS API Documentation
Request Syntax
client.delete_domain_name(
domainName='string'
)
string
[REQUIRED]
The domain name.
dict
Response Syntax
{}
Response Structure
(dict) --
Maps an endpoint to your custom domain.
See also: AWS API Documentation
Request Syntax
client.associate_api(
domainName='string',
apiId='string'
)
string
[REQUIRED]
The domain name.
string
[REQUIRED]
The API ID.
dict
Response Syntax
{
'apiAssociation': {
'domainName': 'string',
'apiId': 'string',
'associationStatus': 'PROCESSING'|'FAILED'|'SUCCESS',
'deploymentDetail': 'string'
}
}
Response Structure
(dict) --
apiAssociation (dict) --
The ApiAssociation object.
domainName (string) --
The domain name.
apiId (string) --
The API ID.
associationStatus (string) --
Identifies the status of an association.
PROCESSING : The API association is being created. You cannot modify association requests during processing.
SUCCESS : The API association was successful. You can modify associations after success.
FAILED : The API association has failed. You can modify associations after failure.
deploymentDetail (string) --
Details about the last deployment status.
Retrieves a custom DomainName object.
See also: AWS API Documentation
Request Syntax
client.get_domain_name(
domainName='string'
)
string
[REQUIRED]
The domain name.
dict
Response Syntax
{
'domainNameConfig': {
'domainName': 'string',
'description': 'string',
'certificateArn': 'string',
'appsyncDomainName': 'string',
'hostedZoneId': 'string'
}
}
Response Structure
(dict) --
domainNameConfig (dict) --
The configuration for the DomainName .
domainName (string) --
The domain name.
description (string) --
A description of the DomainName configuration.
certificateArn (string) --
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
appsyncDomainName (string) --
The domain name that AppSync provides.
hostedZoneId (string) --
The ID of your Amazon Route 53 hosted zone.
Retrieves an ApiAssociation object.
See also: AWS API Documentation
Request Syntax
client.get_api_association(
domainName='string'
)
string
[REQUIRED]
The domain name.
dict
Response Syntax
{
'apiAssociation': {
'domainName': 'string',
'apiId': 'string',
'associationStatus': 'PROCESSING'|'FAILED'|'SUCCESS',
'deploymentDetail': 'string'
}
}
Response Structure
(dict) --
apiAssociation (dict) --
The ApiAssociation object.
domainName (string) --
The domain name.
apiId (string) --
The API ID.
associationStatus (string) --
Identifies the status of an association.
PROCESSING : The API association is being created. You cannot modify association requests during processing.
SUCCESS : The API association was successful. You can modify associations after success.
FAILED : The API association has failed. You can modify associations after failure.
deploymentDetail (string) --
Details about the last deployment status.
Removes an ApiAssociation object from a custom domain.
See also: AWS API Documentation
Request Syntax
client.disassociate_api(
domainName='string'
)
string
[REQUIRED]
The domain name.
dict
Response Syntax
{}
Response Structure
(dict) --
Updates a custom DomainName object.
See also: AWS API Documentation
Request Syntax
client.update_domain_name(
domainName='string',
description='string'
)
string
[REQUIRED]
The domain name.
string
A description of the DomainName .
dict
Response Syntax
{
'domainNameConfig': {
'domainName': 'string',
'description': 'string',
'certificateArn': 'string',
'appsyncDomainName': 'string',
'hostedZoneId': 'string'
}
}
Response Structure
(dict) --
domainNameConfig (dict) --
The configuration for the DomainName .
domainName (string) --
The domain name.
description (string) --
A description of the DomainName configuration.
certificateArn (string) --
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
appsyncDomainName (string) --
The domain name that AppSync provides.
hostedZoneId (string) --
The ID of your Amazon Route 53 hosted zone.