AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateDomainNameInput

import "github.com/aws/aws-sdk-go/service/apigateway"

type CreateDomainNameInput struct { CertificateArn *string `locationName:"certificateArn" type:"string"` CertificateBody *string `locationName:"certificateBody" type:"string"` CertificateChain *string `locationName:"certificateChain" type:"string"` CertificateName *string `locationName:"certificateName" type:"string"` CertificatePrivateKey *string `locationName:"certificatePrivateKey" type:"string"` DomainName *string `locationName:"domainName" type:"string" required:"true"` EndpointConfiguration *EndpointConfiguration `locationName:"endpointConfiguration" type:"structure"` RegionalCertificateArn *string `locationName:"regionalCertificateArn" type:"string"` RegionalCertificateName *string `locationName:"regionalCertificateName" type:"string"` }

A request to create a new domain name.

CertificateArn

Type: *string

The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

CertificateBody

Type: *string

[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.

CertificateChain

Type: *string

[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.

CertificateName

Type: *string

The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.

CertificatePrivateKey

Type: *string

[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.

DomainName

Type: *string

[Required] The name of the DomainName resource.

DomainName is a required field

EndpointConfiguration

The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.

RegionalCertificateArn

Type: *string

The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.

RegionalCertificateName

Type: *string

The user-friendly name of the certificate that will be used by regional endpoint for this domain name.

Method

GoString

func (s CreateDomainNameInput) GoString() string

GoString returns the string representation

SetCertificateArn

func (s *CreateDomainNameInput) SetCertificateArn(v string) *CreateDomainNameInput

SetCertificateArn sets the CertificateArn field's value.

SetCertificateBody

func (s *CreateDomainNameInput) SetCertificateBody(v string) *CreateDomainNameInput

SetCertificateBody sets the CertificateBody field's value.

SetCertificateChain

func (s *CreateDomainNameInput) SetCertificateChain(v string) *CreateDomainNameInput

SetCertificateChain sets the CertificateChain field's value.

SetCertificateName

func (s *CreateDomainNameInput) SetCertificateName(v string) *CreateDomainNameInput

SetCertificateName sets the CertificateName field's value.

SetCertificatePrivateKey

func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput

SetCertificatePrivateKey sets the CertificatePrivateKey field's value.

SetDomainName

func (s *CreateDomainNameInput) SetDomainName(v string) *CreateDomainNameInput

SetDomainName sets the DomainName field's value.

SetEndpointConfiguration

func (s *CreateDomainNameInput) SetEndpointConfiguration(v *EndpointConfiguration) *CreateDomainNameInput

SetEndpointConfiguration sets the EndpointConfiguration field's value.

SetRegionalCertificateArn

func (s *CreateDomainNameInput) SetRegionalCertificateArn(v string) *CreateDomainNameInput

SetRegionalCertificateArn sets the RegionalCertificateArn field's value.

SetRegionalCertificateName

func (s *CreateDomainNameInput) SetRegionalCertificateName(v string) *CreateDomainNameInput

SetRegionalCertificateName sets the RegionalCertificateName field's value.

String

func (s CreateDomainNameInput) String() string

String returns the string representation

Validate

func (s *CreateDomainNameInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: