Class: AWSCDK::VPCLattice::CfnAuthPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnAuthPolicyProps
- Defined in:
- vpc_lattice/cfn_auth_policy_props.rb
Overview
Properties for defining a CfnAuthPolicy.
Instance Attribute Summary collapse
-
#policy ⇒ Object
readonly
The auth policy.
-
#resource_identifier ⇒ String
readonly
The ID or ARN of the service network or service for which the policy is created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy:, resource_identifier:) ⇒ CfnAuthPolicyProps
constructor
A new instance of CfnAuthPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy:, resource_identifier:) ⇒ CfnAuthPolicyProps
Returns a new instance of CfnAuthPolicyProps.
11 12 13 14 15 16 |
# File 'vpc_lattice/cfn_auth_policy_props.rb', line 11 def initialize(policy:, resource_identifier:) @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") @resource_identifier = resource_identifier Jsii::Type.check_type(@resource_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceIdentifier") end |
Instance Attribute Details
#policy ⇒ Object (readonly)
The auth policy.
22 23 24 |
# File 'vpc_lattice/cfn_auth_policy_props.rb', line 22 def policy @policy end |
#resource_identifier ⇒ String (readonly)
The ID or ARN of the service network or service for which the policy is created.
27 28 29 |
# File 'vpc_lattice/cfn_auth_policy_props.rb', line 27 def resource_identifier @resource_identifier end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'vpc_lattice/cfn_auth_policy_props.rb', line 29 def self.jsii_properties { :policy => "policy", :resource_identifier => "resourceIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'vpc_lattice/cfn_auth_policy_props.rb', line 36 def to_jsii result = {} result.merge!({ "policy" => @policy, "resourceIdentifier" => @resource_identifier, }) result.compact end |