Class: Aws::PinpointSMSVoiceV2::Types::RequestPhoneNumberRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpointsmsvoicev2/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, a randomly generated token is used for the request to ensure idempotency.

**A suitable default value is auto-generated.** You should normally not need to pass this option.

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#deletion_protection_enabledBoolean

By default this is set to false. When set to true the phone number can’t be deleted.

Returns:

  • (Boolean)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#iso_country_codeString

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#message_typeString

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren’t critical or time-sensitive.

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#number_capabilitiesArray<String>

Indicates if the phone number will be used for text messages, voice messages, or both.

Returns:

  • (Array<String>)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#number_typeString

The type of phone number to request.

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#opt_out_list_nameString

The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#pool_idString

The pool to associated with the phone number. You can use the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#registration_idString

Use this field to attach your phone number for an external registration process.

Returns:

  • (String)


5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

An array of tags (key and value pairs) associate with the requested phone number.

Returns:



5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
# File 'lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5610

class RequestPhoneNumberRequest < Struct.new(
  :iso_country_code,
  :message_type,
  :number_capabilities,
  :number_type,
  :opt_out_list_name,
  :pool_id,
  :registration_id,
  :deletion_protection_enabled,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end