Class: AWSCDK::Kinesis::CfnResourcePolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kinesis::CfnResourcePolicyProps
- Defined in:
- kinesis/cfn_resource_policy_props.rb
Overview
Properties for defining a CfnResourcePolicy.
Instance Attribute Summary collapse
-
#resource_arn ⇒ String, ...
readonly
Returns the Amazon Resource Name (ARN) of the resource-based policy.
-
#resource_policy ⇒ Object
readonly
This is the description for the resource policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_arn:, resource_policy:) ⇒ CfnResourcePolicyProps
constructor
A new instance of CfnResourcePolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_arn:, resource_policy:) ⇒ CfnResourcePolicyProps
Returns a new instance of CfnResourcePolicyProps.
11 12 13 14 15 16 |
# File 'kinesis/cfn_resource_policy_props.rb', line 11 def initialize(resource_arn:, resource_policy:) @resource_arn = resource_arn Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19raW5lc2lzLklTdHJlYW1SZWYifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2tpbmVzaXMuSVN0cmVhbUNvbnN1bWVyUmVmIn1dfX0=")), "resourceArn") @resource_policy = resource_policy Jsii::Type.check_type(@resource_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "resourcePolicy") end |
Instance Attribute Details
#resource_arn ⇒ String, ... (readonly)
Returns the Amazon Resource Name (ARN) of the resource-based policy.
22 23 24 |
# File 'kinesis/cfn_resource_policy_props.rb', line 22 def resource_arn @resource_arn end |
#resource_policy ⇒ Object (readonly)
This is the description for the resource policy.
27 28 29 |
# File 'kinesis/cfn_resource_policy_props.rb', line 27 def resource_policy @resource_policy end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'kinesis/cfn_resource_policy_props.rb', line 29 def self.jsii_properties { :resource_arn => "resourceArn", :resource_policy => "resourcePolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'kinesis/cfn_resource_policy_props.rb', line 36 def to_jsii result = {} result.merge!({ "resourceArn" => @resource_arn, "resourcePolicy" => @resource_policy, }) result.compact end |