Class: Aws::Lightsail::Types::CreateSubdomainRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#subdomain_name ⇒ String

The subdomain to create (for example, mysite or blog.mysite).

A subdomain can contain one or two labels separated by a period (.). Each label must start and end with a lowercase letter or a number, and can contain only lowercase letters, numbers, and hyphens (-). The name can be up to 39 characters long, including periods. Labels that start with xn-- aren't supported, and some names are reserved.

Specify only the subdomain. A web address, such as mysite.amazonlightsail.com, isn't accepted.

To create a nested subdomain, you must own the top-level subdomain or be able to create it.

Returns:

  • (String)


5034
5035
5036
5037
5038
5039
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 5034

class CreateSubdomainRequest < Struct.new(
  :subdomain_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tags ⇒ Array<Types::Tag>

The tag keys and optional values to add to the subdomain during create.

Use the TagResource action to tag a resource after it's created.

Returns:



5034
5035
5036
5037
5038
5039
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 5034

class CreateSubdomainRequest < Struct.new(
  :subdomain_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end