SecurityAgent / Client / update_target_domain

update_target_domain

SecurityAgent.Client.update_target_domain(**kwargs)

Updates the verification method for a target domain.

See also: AWS API Documentation

Request Syntax

response = client.update_target_domain(
    targetDomainId='string',
    verificationMethod='DNS_TXT'|'HTTP_ROUTE'|'PRIVATE_VPC'
)
Parameters:
  • targetDomainId (string) –

    [REQUIRED]

    The unique identifier of the target domain to update.

  • verificationMethod (string) –

    [REQUIRED]

    The updated verification method for the target domain.

Return type:

dict

Returns:

Response Syntax

{
    'targetDomainId': 'string',
    'domainName': 'string',
    'verificationStatus': 'PENDING'|'VERIFIED'|'FAILED'|'UNREACHABLE',
    'verificationStatusReason': 'string',
    'verificationDetails': {
        'method': 'DNS_TXT'|'HTTP_ROUTE'|'PRIVATE_VPC',
        'dnsTxt': {
            'token': 'string',
            'dnsRecordName': 'string',
            'dnsRecordType': 'TXT'
        },
        'httpRoute': {
            'token': 'string',
            'routePath': 'string'
        }
    },
    'createdAt': datetime(2015, 1, 1),
    'verifiedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    Output for the UpdateTargetDomain operation.

    • targetDomainId (string) –

      The unique identifier of the target domain.

    • domainName (string) –

      The domain name of the target domain.

    • verificationStatus (string) –

      The current verification status of the target domain.

    • verificationStatusReason (string) –

      The reason for the current target domain verification status.

    • verificationDetails (dict) –

      The updated verification details for the target domain.

      • method (string) –

        The verification method used for the target domain.

      • dnsTxt (dict) –

        The DNS TXT verification details.

        • token (string) –

          The verification token to include in the DNS record value.

        • dnsRecordName (string) –

          The name of the DNS record to create for verification.

        • dnsRecordType (string) –

          The type of DNS record to create. Currently, only TXT is supported.

      • httpRoute (dict) –

        The HTTP route verification details.

        • token (string) –

          The verification token to serve at the specified route path.

        • routePath (string) –

          The HTTP route path where the verification token must be served.

    • createdAt (datetime) –

      The date and time the target domain was created, in UTC format.

    • verifiedAt (datetime) –

      The date and time the target domain was verified, in UTC format.