Class: AWSCDK::ECR::CfnPullThroughCacheRuleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnPullThroughCacheRuleProps
- Defined in:
- ecr/cfn_pull_through_cache_rule_props.rb
Overview
Properties for defining a CfnPullThroughCacheRule.
Instance Attribute Summary collapse
-
#credential_arn ⇒ String?
readonly
The ARN of the Secrets Manager secret associated with the pull through cache rule.
-
#custom_role_arn ⇒ String?
readonly
The ARN of the IAM role associated with the pull through cache rule.
-
#ecr_repository_prefix ⇒ String?
readonly
The Amazon ECR repository prefix associated with the pull through cache rule.
-
#upstream_registry ⇒ String?
readonly
The name of the upstream source registry associated with the pull through cache rule.
-
#upstream_registry_url ⇒ String?
readonly
The upstream registry URL associated with the pull through cache rule.
-
#upstream_repository_prefix ⇒ String?
readonly
The upstream repository prefix associated with the pull through cache rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credential_arn: nil, custom_role_arn: nil, ecr_repository_prefix: nil, upstream_registry: nil, upstream_registry_url: nil, upstream_repository_prefix: nil) ⇒ CfnPullThroughCacheRuleProps
constructor
A new instance of CfnPullThroughCacheRuleProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credential_arn: nil, custom_role_arn: nil, ecr_repository_prefix: nil, upstream_registry: nil, upstream_registry_url: nil, upstream_repository_prefix: nil) ⇒ CfnPullThroughCacheRuleProps
Returns a new instance of CfnPullThroughCacheRuleProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 15 def initialize(credential_arn: nil, custom_role_arn: nil, ecr_repository_prefix: nil, upstream_registry: nil, upstream_registry_url: nil, upstream_repository_prefix: nil) @credential_arn = credential_arn Jsii::Type.check_type(@credential_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "credentialArn") unless @credential_arn.nil? @custom_role_arn = custom_role_arn Jsii::Type.check_type(@custom_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customRoleArn") unless @custom_role_arn.nil? @ecr_repository_prefix = ecr_repository_prefix Jsii::Type.check_type(@ecr_repository_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ecrRepositoryPrefix") unless @ecr_repository_prefix.nil? @upstream_registry = upstream_registry Jsii::Type.check_type(@upstream_registry, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "upstreamRegistry") unless @upstream_registry.nil? @upstream_registry_url = upstream_registry_url Jsii::Type.check_type(@upstream_registry_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "upstreamRegistryUrl") unless @upstream_registry_url.nil? @upstream_repository_prefix = upstream_repository_prefix Jsii::Type.check_type(@upstream_repository_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "upstreamRepositoryPrefix") unless @upstream_repository_prefix.nil? end |
Instance Attribute Details
#credential_arn ⇒ String? (readonly)
The ARN of the Secrets Manager secret associated with the pull through cache rule.
34 35 36 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 34 def credential_arn @credential_arn end |
#custom_role_arn ⇒ String? (readonly)
The ARN of the IAM role associated with the pull through cache rule.
39 40 41 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 39 def custom_role_arn @custom_role_arn end |
#ecr_repository_prefix ⇒ String? (readonly)
The Amazon ECR repository prefix associated with the pull through cache rule.
44 45 46 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 44 def ecr_repository_prefix @ecr_repository_prefix end |
#upstream_registry ⇒ String? (readonly)
The name of the upstream source registry associated with the pull through cache rule.
49 50 51 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 49 def upstream_registry @upstream_registry end |
#upstream_registry_url ⇒ String? (readonly)
The upstream registry URL associated with the pull through cache rule.
54 55 56 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 54 def upstream_registry_url @upstream_registry_url end |
#upstream_repository_prefix ⇒ String? (readonly)
The upstream repository prefix associated with the pull through cache rule.
59 60 61 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 59 def upstream_repository_prefix @upstream_repository_prefix end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 61 def self.jsii_properties { :credential_arn => "credentialArn", :custom_role_arn => "customRoleArn", :ecr_repository_prefix => "ecrRepositoryPrefix", :upstream_registry => "upstreamRegistry", :upstream_registry_url => "upstreamRegistryUrl", :upstream_repository_prefix => "upstreamRepositoryPrefix", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'ecr/cfn_pull_through_cache_rule_props.rb', line 72 def to_jsii result = {} result.merge!({ "credentialArn" => @credential_arn, "customRoleArn" => @custom_role_arn, "ecrRepositoryPrefix" => @ecr_repository_prefix, "upstreamRegistry" => @upstream_registry, "upstreamRegistryUrl" => @upstream_registry_url, "upstreamRepositoryPrefix" => @upstream_repository_prefix, }) result.compact end |