Class: AWSCDK::AppSync::APIKeyConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::APIKeyConfig
- Defined in:
- app_sync/api_key_config.rb
Overview
Configuration for API Key authorization in AppSync.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
Description of API key.
-
#expires ⇒ AWSCDK::Expiration?
readonly
The time from creation time after which the API key expires.
-
#name ⇒ String?
readonly
Unique name of the API Key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, expires: nil, name: nil) ⇒ APIKeyConfig
constructor
A new instance of APIKeyConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, expires: nil, name: nil) ⇒ APIKeyConfig
Returns a new instance of APIKeyConfig.
10 11 12 13 14 15 16 17 |
# File 'app_sync/api_key_config.rb', line 10 def initialize(description: nil, expires: nil, name: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @expires = expires Jsii::Type.check_type(@expires, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5FeHBpcmF0aW9uIn0=")), "expires") unless @expires.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Note:
Default: - 'Default API Key created by CDK'
Description of API key.
23 24 25 |
# File 'app_sync/api_key_config.rb', line 23 def description @description end |
#expires ⇒ AWSCDK::Expiration? (readonly)
Note:
Default: - 7 days rounded down to nearest hour
The time from creation time after which the API key expires.
It must be a minimum of 1 day and a maximum of 365 days from date of creation. Rounded down to the nearest hour.
31 32 33 |
# File 'app_sync/api_key_config.rb', line 31 def expires @expires end |
#name ⇒ String? (readonly)
Note:
Default: - 'DefaultAPIKey'
Unique name of the API Key.
36 37 38 |
# File 'app_sync/api_key_config.rb', line 36 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
38 39 40 41 42 43 44 |
# File 'app_sync/api_key_config.rb', line 38 def self.jsii_properties { :description => "description", :expires => "expires", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'app_sync/api_key_config.rb', line 46 def to_jsii result = {} result.merge!({ "description" => @description, "expires" => @expires, "name" => @name, }) result.compact end |