Class: Aws::LocationService::Types::CreateKeyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::LocationService::Types::CreateKeyRequest
- Defined in:
- gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[:expire_time]
Instance Attribute Summary collapse
-
#description ⇒ String
An optional description for the API key resource.
-
#expire_time ⇒ Time
The optional timestamp for when the API key resource will expire in [ ISO 8601][1] format:
YYYY-MM-DDThh:mm:ss.sssZ. -
#key_name ⇒ String
A custom name for the API key resource.
-
#no_expiry ⇒ Boolean
Optionally set to
trueto set no expiration time for the API key. -
#restrictions ⇒ Types::ApiKeyRestrictions
The API key restrictions for the API key resource.
-
#tags ⇒ Hash<String,String>
Applies one or more tags to the map resource.
Instance Attribute Details
#description ⇒ String
An optional description for the API key resource.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |
#expire_time ⇒ Time
The optional timestamp for when the API key resource will expire in
ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. One of NoExpiry
or ExpireTime must be set.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |
#key_name ⇒ String
A custom name for the API key resource.
Requirements:
Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
Must be a unique API key name.
No spaces allowed. For example,
ExampleAPIKey.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |
#no_expiry ⇒ Boolean
Optionally set to true to set no expiration time for the API key.
One of NoExpiry or ExpireTime must be set.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |
#restrictions ⇒ Types::ApiKeyRestrictions
The API key restrictions for the API key resource.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |
#tags ⇒ Hash<String,String>
Applies one or more tags to the map resource. A tag is a key-value pair that helps manage, identify, search, and filter your resources by labelling them.
Format: "key" : "value"
Restrictions:
Maximum 50 tags per resource
Each resource tag must be unique with a maximum of one value.
Maximum key length: 128 Unicode characters in UTF-8
Maximum value length: 256 Unicode characters in UTF-8
Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
Cannot use "aws:" as a prefix for a key.
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 1576 class CreateKeyRequest < Struct.new( :key_name, :restrictions, :description, :expire_time, :no_expiry, :tags) SENSITIVE = [:expire_time] include Aws::Structure end |