Class: AWSCDK::WorkspacesWeb::CfnUserAccessLoggingSettingsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnUserAccessLoggingSettingsProps
- Defined in:
- workspaces_web/cfn_user_access_logging_settings_props.rb
Overview
Properties for defining a CfnUserAccessLoggingSettings.
Instance Attribute Summary collapse
-
#kinesis_stream_arn ⇒ String
readonly
The ARN of the Kinesis stream.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to add to the user access logging settings resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kinesis_stream_arn:, tags: nil) ⇒ CfnUserAccessLoggingSettingsProps
constructor
A new instance of CfnUserAccessLoggingSettingsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kinesis_stream_arn:, tags: nil) ⇒ CfnUserAccessLoggingSettingsProps
Returns a new instance of CfnUserAccessLoggingSettingsProps.
11 12 13 14 15 16 |
# File 'workspaces_web/cfn_user_access_logging_settings_props.rb', line 11 def initialize(kinesis_stream_arn:, tags: nil) @kinesis_stream_arn = kinesis_stream_arn Jsii::Type.check_type(@kinesis_stream_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kinesisStreamArn") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#kinesis_stream_arn ⇒ String (readonly)
The ARN of the Kinesis stream.
22 23 24 |
# File 'workspaces_web/cfn_user_access_logging_settings_props.rb', line 22 def kinesis_stream_arn @kinesis_stream_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to add to the user access logging settings resource.
A tag is a key-value pair.
29 30 31 |
# File 'workspaces_web/cfn_user_access_logging_settings_props.rb', line 29 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'workspaces_web/cfn_user_access_logging_settings_props.rb', line 31 def self.jsii_properties { :kinesis_stream_arn => "kinesisStreamArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'workspaces_web/cfn_user_access_logging_settings_props.rb', line 38 def to_jsii result = {} result.merge!({ "kinesisStreamArn" => @kinesis_stream_arn, "tags" => @tags, }) result.compact end |