You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::DirectoryService::Types::CreateAliasRequest

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

Overview

Note:

When making an API call, you may pass CreateAliasRequest data as a hash:

{
  directory_id: "DirectoryId", # required
  alias: "AliasName", # required
}

Contains the inputs for the CreateAlias operation.

Instance Attribute Summary collapse

Instance Attribute Details

#aliasString

The requested alias.

The alias must be unique amongst all aliases in AWS. This operation throws an EntityAlreadyExistsException error if the alias already exists.

Returns:

  • (String)


350
351
352
353
354
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 350

class CreateAliasRequest < Struct.new(
  :directory_id,
  :alias)
  include Aws::Structure
end

#directory_idString

The identifier of the directory for which to create the alias.

Returns:

  • (String)


350
351
352
353
354
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 350

class CreateAliasRequest < Struct.new(
  :directory_id,
  :alias)
  include Aws::Structure
end