Class: AWSCDK::Lambda::CfnCodeSigningConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnCodeSigningConfigProps
- Defined in:
- lambda/cfn_code_signing_config_props.rb
Overview
Properties for defining a CfnCodeSigningConfig.
Instance Attribute Summary collapse
-
#allowed_publishers ⇒ AWSCDK::IResolvable, AWSCDK::Lambda::CfnCodeSigningConfig::AllowedPublishersProperty
readonly
List of allowed publishers.
-
#code_signing_policies ⇒ AWSCDK::IResolvable, ...
readonly
The code signing policy controls the validation failure action for signature mismatch or expiry.
-
#description ⇒ String?
readonly
Code signing configuration description.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags to add to the code signing configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_publishers:, code_signing_policies: nil, description: nil, tags: nil) ⇒ CfnCodeSigningConfigProps
constructor
A new instance of CfnCodeSigningConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_publishers:, code_signing_policies: nil, description: nil, tags: nil) ⇒ CfnCodeSigningConfigProps
Returns a new instance of CfnCodeSigningConfigProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'lambda/cfn_code_signing_config_props.rb', line 13 def initialize(allowed_publishers:, code_signing_policies: nil, description: nil, tags: nil) @allowed_publishers = allowed_publishers.is_a?(Hash) ? ::AWSCDK::Lambda::CfnCodeSigningConfig::AllowedPublishersProperty.new(**allowed_publishers.transform_keys(&:to_sym)) : allowed_publishers Jsii::Type.check_type(@allowed_publishers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYW1iZGEuQ2ZuQ29kZVNpZ25pbmdDb25maWcuQWxsb3dlZFB1Ymxpc2hlcnNQcm9wZXJ0eSJ9XX19")), "allowedPublishers") @code_signing_policies = code_signing_policies.is_a?(Hash) ? ::AWSCDK::Lambda::CfnCodeSigningConfig::CodeSigningPoliciesProperty.new(**code_signing_policies.transform_keys(&:to_sym)) : code_signing_policies Jsii::Type.check_type(@code_signing_policies, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYW1iZGEuQ2ZuQ29kZVNpZ25pbmdDb25maWcuQ29kZVNpZ25pbmdQb2xpY2llc1Byb3BlcnR5In1dfX0=")), "codeSigningPolicies") unless @code_signing_policies.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @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
#allowed_publishers ⇒ AWSCDK::IResolvable, AWSCDK::Lambda::CfnCodeSigningConfig::AllowedPublishersProperty (readonly)
List of allowed publishers.
28 29 30 |
# File 'lambda/cfn_code_signing_config_props.rb', line 28 def allowed_publishers @allowed_publishers end |
#code_signing_policies ⇒ AWSCDK::IResolvable, ... (readonly)
The code signing policy controls the validation failure action for signature mismatch or expiry.
33 34 35 |
# File 'lambda/cfn_code_signing_config_props.rb', line 33 def code_signing_policies @code_signing_policies end |
#description ⇒ String? (readonly)
Code signing configuration description.
38 39 40 |
# File 'lambda/cfn_code_signing_config_props.rb', line 38 def description @description end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags to add to the code signing configuration.
You must have the
lambda:TagResource,lambda:UntagResource, andlambda:ListTagspermissions for your IAM principal to manage the CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.
45 46 47 |
# File 'lambda/cfn_code_signing_config_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lambda/cfn_code_signing_config_props.rb', line 47 def self.jsii_properties { :allowed_publishers => "allowedPublishers", :code_signing_policies => "codeSigningPolicies", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'lambda/cfn_code_signing_config_props.rb', line 56 def to_jsii result = {} result.merge!({ "allowedPublishers" => @allowed_publishers, "codeSigningPolicies" => @code_signing_policies, "description" => @description, "tags" => @tags, }) result.compact end |