Class: AWSCDK::EventSchemas::CfnRegistryPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EventSchemas::CfnRegistryPolicyProps
- Defined in:
- event_schemas/cfn_registry_policy_props.rb
Overview
Properties for defining a CfnRegistryPolicy.
Instance Attribute Summary collapse
-
#policy ⇒ Object
readonly
A resource-based policy.
-
#registry_name ⇒ String
readonly
The name of the registry.
-
#revision_id ⇒ String?
readonly
The revision ID of the policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy:, registry_name:, revision_id: nil) ⇒ CfnRegistryPolicyProps
constructor
A new instance of CfnRegistryPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy:, registry_name:, revision_id: nil) ⇒ CfnRegistryPolicyProps
Returns a new instance of CfnRegistryPolicyProps.
12 13 14 15 16 17 18 19 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 12 def initialize(policy:, registry_name:, revision_id: nil) @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") @registry_name = registry_name Jsii::Type.check_type(@registry_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "registryName") @revision_id = revision_id Jsii::Type.check_type(@revision_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "revisionId") unless @revision_id.nil? end |
Instance Attribute Details
#policy ⇒ Object (readonly)
A resource-based policy.
25 26 27 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 25 def policy @policy end |
#registry_name ⇒ String (readonly)
The name of the registry.
30 31 32 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 30 def registry_name @registry_name end |
#revision_id ⇒ String? (readonly)
The revision ID of the policy.
35 36 37 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 35 def revision_id @revision_id end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 37 def self.jsii_properties { :policy => "policy", :registry_name => "registryName", :revision_id => "revisionId", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'event_schemas/cfn_registry_policy_props.rb', line 45 def to_jsii result = {} result.merge!({ "policy" => @policy, "registryName" => @registry_name, "revisionId" => @revision_id, }) result.compact end |