Skip to main content

domain_name_access_associations

Creates, updates, deletes, gets or lists a domain_name_access_associations resource.

Overview

Namedomain_name_access_associations
TypeResource
Idaws.apigateway.domain_name_access_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
items_arrayThe current page of elements from this collection.
positionstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_name_access_associationsselectregionposition, limit, resourceOwnerRepresents a collection on DomainNameAccessAssociations resources.
create_domain_name_access_associationinsertregion, domainNameArn, accessAssociationSourceType, accessAssociationSourceCreates a domain name access association resource between an access association source and a private custom domain name.
delete_domain_name_access_associationdeletedomain_name_access_association_arn, regionDeletes the DomainNameAccessAssociation resource. Only the AWS account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another AWS account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.

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
domain_name_access_association_arnstringThe ARN of the domain name access association resource.
regionstringAWS region (default: us-east-1)
limitintegerThe maximum number of returned results per page. The default value is 25 and the maximum value is 500.
positionstringThe current pagination position in the paged result set.
resourceOwnerstringThe owner of the domain name access association. Use SELF to only list the domain name access associations owned by your own account. Use OTHER_ACCOUNTS to list the domain name access associations with your private custom domain names that are owned by other AWS accounts.

SELECT examples

Represents a collection on DomainNameAccessAssociations resources.

SELECT
items_,
position
FROM aws.apigateway.domain_name_access_associations
WHERE region = '{{ region }}' -- required
AND position = '{{ position }}'
AND limit = '{{ limit }}'
AND resourceOwner = '{{ resourceOwner }}'
;

INSERT examples

Creates a domain name access association resource between an access association source and a private custom domain name.

INSERT INTO aws.apigateway.domain_name_access_associations (
domainNameArn,
accessAssociationSourceType,
accessAssociationSource,
tags,
region
)
SELECT
'{{ domainNameArn }}' /* required */,
'{{ accessAssociationSourceType }}' /* required */,
'{{ accessAssociationSource }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
access_association_source,
access_association_source_type,
domain_name_access_association_arn,
domain_name_arn,
tags
;

DELETE examples

Deletes the DomainNameAccessAssociation resource. Only the AWS account that created the DomainNameAccessAssociation resource can delete it. To stop an access association source in another AWS account from accessing your private custom domain name, use the RejectDomainNameAccessAssociation operation.

DELETE FROM aws.apigateway.domain_name_access_associations
WHERE domain_name_access_association_arn = '{{ domain_name_access_association_arn }}' --required
AND region = '{{ region }}' --required
;