Class: AWSCDK::AppConfig::Environment
- Inherits:
-
Resource
- Object
- Resource
- AWSCDK::AppConfig::Environment
- Includes:
- IEnvironment, IExtensible
- Defined in:
- app_config/environment.rb
Overview
An AWS AppConfig environment.
[disable-awslint:no-grants]
Class Method Summary collapse
-
.from_environment_arn(scope, id, environment_arn) ⇒ AWSCDK::AppConfig::IEnvironment
Imports an environment into the CDK using its Amazon Resource Name (ARN).
-
.from_environment_attributes(scope, id, attrs) ⇒ AWSCDK::AppConfig::IEnvironment
Imports an environment into the CDK from its attributes.
- .jsii_overridable_methods ⇒ Object
-
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
Instance Method Summary collapse
-
#add_deployment(configuration) ⇒ void
Creates a deployment of the supplied configuration to this environment.
-
#add_deployments(*configurations) ⇒ void
Creates a deployment for each of the supplied configurations to this environment.
-
#add_extension(extension) ⇒ void
Adds an extension association to the environment.
-
#application ⇒ AWSCDK::AppConfig::IApplication?
The application associated with the environment.
-
#application_id ⇒ String
The ID of the environment.
-
#apply_cross_stack_reference_strength(strength) ⇒ void
Override the cross-stack reference strength for this resource.
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#at_deployment_tick(event_destination, options = nil) ⇒ void
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.
- #deployment_queue ⇒ Array<AWSCDK::AppConfig::CfnDeployment>
- #deployment_queue=(value) ⇒ Object
-
#description ⇒ String?
The description of the environment.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
-
#environment_arn ⇒ String
The Amazon Resource Name (ARN) of the environment.
-
#environment_id ⇒ String
The ID of the environment.
-
#environment_ref ⇒ AWSCDK::Interfaces::AWSAppconfig::EnvironmentReference
A reference to a Environment resource.
- #extensible ⇒ AWSCDK::AppConfig::ExtensibleBase
- #extensible=(value) ⇒ Object
- #generate_physical_name ⇒ String
-
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g.
bucket.bucketArn). -
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g.
bucket.bucketName). -
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#grant_read_config(identity) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
-
#initialize(scope, id, props) ⇒ Environment
constructor
A new instance of Environment.
-
#monitors ⇒ Array<AWSCDK::AppConfig::Monitor>?
The monitors for the environment.
-
#name ⇒ String?
The name of the environment.
-
#node ⇒ Constructs::Node
The tree node.
-
#on(action_point, event_destination, options = nil) ⇒ void
Adds an extension defined by the action point and event destination and also creates an extension association to the environment.
-
#on_deployment_baking(event_destination, options = nil) ⇒ void
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the environment.
-
#on_deployment_complete(event_destination, options = nil) ⇒ void
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the environment.
-
#on_deployment_rolled_back(event_destination, options = nil) ⇒ void
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the environment.
-
#on_deployment_start(event_destination, options = nil) ⇒ void
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the environment.
-
#on_deployment_step(event_destination, options = nil) ⇒ void
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the environment.
-
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
-
#pre_create_hosted_configuration_version(event_destination, options = nil) ⇒ void
Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the environment.
-
#pre_start_deployment(event_destination, options = nil) ⇒ void
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the environment.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ Environment
Returns a new instance of Environment.
17 18 19 20 21 22 23 |
# File 'app_config/environment.rb', line 17 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::AppConfig::EnvironmentProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkVudmlyb25tZW50UHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.from_environment_arn(scope, id, environment_arn) ⇒ AWSCDK::AppConfig::IEnvironment
Imports an environment into the CDK using its Amazon Resource Name (ARN).
71 72 73 74 75 76 |
# File 'app_config/environment.rb', line 71 def self.from_environment_arn(scope, id, environment_arn) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(environment_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentArn") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appconfig.Environment", "fromEnvironmentArn", [scope, id, environment_arn]) end |
.from_environment_attributes(scope, id, attrs) ⇒ AWSCDK::AppConfig::IEnvironment
Imports an environment into the CDK from its attributes.
84 85 86 87 88 89 90 |
# File 'app_config/environment.rb', line 84 def self.from_environment_attributes(scope, id, attrs) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") attrs = attrs.is_a?(Hash) ? ::AWSCDK::AppConfig::EnvironmentAttributes.new(**attrs.transform_keys(&:to_sym)) : attrs Jsii::Type.check_type(attrs, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkVudmlyb25tZW50QXR0cmlidXRlcyJ9")), "attrs") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appconfig.Environment", "fromEnvironmentAttributes", [scope, id, attrs]) end |
.jsii_overridable_methods ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'app_config/environment.rb', line 25 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :physical_name => { kind: :property, name: "physicalName", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :application_id => { kind: :property, name: "applicationId", is_optional: false }, :environment_arn => { kind: :property, name: "environmentArn", is_optional: false }, :environment_id => { kind: :property, name: "environmentId", is_optional: false }, :environment_ref => { kind: :property, name: "environmentRef", is_optional: false }, :application => { kind: :property, name: "application", is_optional: true }, :description => { kind: :property, name: "description", is_optional: true }, :monitors => { kind: :property, name: "monitors", is_optional: true }, :name => { kind: :property, name: "name", is_optional: true }, :deployment_queue => { kind: :property, name: "deploymentQueue", is_optional: false }, :extensible => { kind: :property, name: "extensible", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :apply_cross_stack_reference_strength => { kind: :method, name: "applyCrossStackReferenceStrength", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :generate_physical_name => { kind: :method, name: "generatePhysicalName", is_optional: false }, :get_resource_arn_attribute => { kind: :method, name: "getResourceArnAttribute", is_optional: false }, :get_resource_name_attribute => { kind: :method, name: "getResourceNameAttribute", is_optional: false }, :add_deployment => { kind: :method, name: "addDeployment", is_optional: false }, :add_deployments => { kind: :method, name: "addDeployments", is_optional: false }, :add_extension => { kind: :method, name: "addExtension", is_optional: false }, :at_deployment_tick => { kind: :method, name: "atDeploymentTick", is_optional: false }, :grant => { kind: :method, name: "grant", is_optional: false }, :grant_read_config => { kind: :method, name: "grantReadConfig", is_optional: false }, :on => { kind: :method, name: "on", is_optional: false }, :on_deployment_baking => { kind: :method, name: "onDeploymentBaking", is_optional: false }, :on_deployment_complete => { kind: :method, name: "onDeploymentComplete", is_optional: false }, :on_deployment_rolled_back => { kind: :method, name: "onDeploymentRolledBack", is_optional: false }, :on_deployment_start => { kind: :method, name: "onDeploymentStart", is_optional: false }, :on_deployment_step => { kind: :method, name: "onDeploymentStep", is_optional: false }, :pre_create_hosted_configuration_version => { kind: :method, name: "preCreateHostedConfigurationVersion", is_optional: false }, :pre_start_deployment => { kind: :method, name: "preStartDeployment", is_optional: false }, } end |
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
138 139 140 |
# File 'app_config/environment.rb', line 138 def self.PROPERTY_INJECTION_ID() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appconfig.Environment", "PROPERTY_INJECTION_ID") end |
Instance Method Details
#add_deployment(configuration) ⇒ void
This method returns an undefined value.
Creates a deployment of the supplied configuration to this environment.
Note that you can only deploy one configuration at a time to an environment. However, you can deploy one configuration each to different environments at the same time. If more than one deployment is requested for this environment, they will occur in the same order they were provided.
316 317 318 319 |
# File 'app_config/environment.rb', line 316 def add_deployment(configuration) Jsii::Type.check_type(configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklDb25maWd1cmF0aW9uIn0=")), "configuration") jsii_call_method("addDeployment", [configuration]) end |
#add_deployments(*configurations) ⇒ void
This method returns an undefined value.
Creates a deployment for each of the supplied configurations to this environment.
These configurations will be deployed in the same order as the input array.
327 328 329 330 331 332 |
# File 'app_config/environment.rb', line 327 def add_deployments(*configurations) configurations.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklDb25maWd1cmF0aW9uIn0=")), "configurations[#{index}]") end jsii_call_method("addDeployments", [*configurations]) end |
#add_extension(extension) ⇒ void
This method returns an undefined value.
Adds an extension association to the environment.
338 339 340 341 |
# File 'app_config/environment.rb', line 338 def add_extension(extension) Jsii::Type.check_type(extension, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFeHRlbnNpb24ifQ==")), "extension") jsii_call_method("addExtension", [extension]) end |
#application ⇒ AWSCDK::AppConfig::IApplication?
The application associated with the environment.
173 174 175 |
# File 'app_config/environment.rb', line 173 def application() jsii_get_property("application") end |
#application_id ⇒ String
The ID of the environment.
145 146 147 |
# File 'app_config/environment.rb', line 145 def application_id() jsii_get_property("applicationId") end |
#apply_cross_stack_reference_strength(strength) ⇒ void
This method returns an undefined value.
Override the cross-stack reference strength for this resource.
When set, any cross-stack reference to this resource will use the specified
mechanism instead of the global default determined by the
@aws-cdk/core:defaultCrossStackReferences context key. This is useful for
selectively weakening specific references to avoid the "deadly embrace" problem
without changing the app-wide default.
251 252 253 254 |
# File 'app_config/environment.rb', line 251 def apply_cross_stack_reference_strength(strength) Jsii::Type.check_type(strength, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZWZlcmVuY2VTdHJlbmd0aCJ9")), "strength") jsii_call_method("applyCrossStackReferenceStrength", [strength]) end |
#apply_removal_policy(policy) ⇒ void
This method returns an undefined value.
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
268 269 270 271 |
# File 'app_config/environment.rb', line 268 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#at_deployment_tick(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an AT_DEPLOYMENT_TICK extension with the provided event destination and also creates an extension association to an application.
348 349 350 351 352 353 |
# File 'app_config/environment.rb', line 348 def at_deployment_tick(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("atDeploymentTick", [event_destination, ]) end |
#deployment_queue ⇒ Array<AWSCDK::AppConfig::CfnDeployment>
199 200 201 |
# File 'app_config/environment.rb', line 199 def deployment_queue() jsii_get_property("deploymentQueue") end |
#deployment_queue=(value) ⇒ Object
203 204 205 206 |
# File 'app_config/environment.rb', line 203 def deployment_queue=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBjb25maWcuQ2ZuRGVwbG95bWVudCJ9LCJraW5kIjoiYXJyYXkifX0=")), "deploymentQueue") jsii_set_property("deploymentQueue", value) end |
#description ⇒ String?
The description of the environment.
180 181 182 |
# File 'app_config/environment.rb', line 180 def description() jsii_get_property("description") end |
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
110 111 112 |
# File 'app_config/environment.rb', line 110 def env() jsii_get_property("env") end |
#environment_arn ⇒ String
The Amazon Resource Name (ARN) of the environment.
152 153 154 |
# File 'app_config/environment.rb', line 152 def environment_arn() jsii_get_property("environmentArn") end |
#environment_id ⇒ String
The ID of the environment.
159 160 161 |
# File 'app_config/environment.rb', line 159 def environment_id() jsii_get_property("environmentId") end |
#environment_ref ⇒ AWSCDK::Interfaces::AWSAppconfig::EnvironmentReference
A reference to a Environment resource.
166 167 168 |
# File 'app_config/environment.rb', line 166 def environment_ref() jsii_get_property("environmentRef") end |
#extensible ⇒ AWSCDK::AppConfig::ExtensibleBase
209 210 211 |
# File 'app_config/environment.rb', line 209 def extensible() jsii_get_property("extensible") end |
#extensible=(value) ⇒ Object
213 214 215 216 |
# File 'app_config/environment.rb', line 213 def extensible=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2libGVCYXNlIn0=")), "extensible") jsii_set_property("extensible", value) end |
#generate_physical_name ⇒ String
274 275 276 |
# File 'app_config/environment.rb', line 274 def generate_physical_name() jsii_call_method("generatePhysicalName", []) end |
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. bucket.bucketArn).
Normally, this token will resolve to arn_attr, but if the resource is
referenced across environments, arn_components will be used to synthesize
a concrete ARN with the resource's physical name. Make sure to reference
this.physicalName in arn_components.
288 289 290 291 292 293 |
# File 'app_config/environment.rb', line 288 def get_resource_arn_attribute(arn_attr, arn_components) Jsii::Type.check_type(arn_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnAttr") arn_components = arn_components.is_a?(Hash) ? ::AWSCDK::ARNComponents.new(**arn_components.transform_keys(&:to_sym)) : arn_components Jsii::Type.check_type(arn_components, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Bcm5Db21wb25lbnRzIn0=")), "arnComponents") jsii_call_method("getResourceArnAttribute", [arn_attr, arn_components]) end |
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. bucket.bucketName).
Normally, this token will resolve to name_attr, but if the resource is
referenced across environments, it will be resolved to this.physicalName,
which will be a concrete name.
303 304 305 306 |
# File 'app_config/environment.rb', line 303 def get_resource_name_attribute(name_attr) Jsii::Type.check_type(name_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nameAttr") jsii_call_method("getResourceNameAttribute", [name_attr]) end |
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
360 361 362 363 364 365 366 |
# File 'app_config/environment.rb', line 360 def grant(grantee, *actions) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") actions.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actions[#{index}]") end jsii_call_method("grant", [grantee, *actions]) end |
#grant_read_config(identity) ⇒ AWSCDK::IAM::Grant
[disable-awslint:no-grants].
372 373 374 375 |
# File 'app_config/environment.rb', line 372 def grant_read_config(identity) Jsii::Type.check_type(identity, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "identity") jsii_call_method("grantReadConfig", [identity]) end |
#monitors ⇒ Array<AWSCDK::AppConfig::Monitor>?
The monitors for the environment.
187 188 189 |
# File 'app_config/environment.rb', line 187 def monitors() jsii_get_property("monitors") end |
#name ⇒ String?
The name of the environment.
194 195 196 |
# File 'app_config/environment.rb', line 194 def name() jsii_get_property("name") end |
#node ⇒ Constructs::Node
The tree node.
95 96 97 |
# File 'app_config/environment.rb', line 95 def node() jsii_get_property("node") end |
#on(action_point, event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an extension defined by the action point and event destination and also creates an extension association to the environment.
383 384 385 386 387 388 389 |
# File 'app_config/environment.rb', line 383 def on(action_point, event_destination, = nil) Jsii::Type.check_type(action_point, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkFjdGlvblBvaW50In0=")), "actionPoint") Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("on", [action_point, event_destination, ]) end |
#on_deployment_baking(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an ON_DEPLOYMENT_BAKING extension with the provided event destination and also creates an extension association to the environment.
396 397 398 399 400 401 |
# File 'app_config/environment.rb', line 396 def on_deployment_baking(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("onDeploymentBaking", [event_destination, ]) end |
#on_deployment_complete(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an ON_DEPLOYMENT_COMPLETE extension with the provided event destination and also creates an extension association to the environment.
408 409 410 411 412 413 |
# File 'app_config/environment.rb', line 408 def on_deployment_complete(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("onDeploymentComplete", [event_destination, ]) end |
#on_deployment_rolled_back(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an ON_DEPLOYMENT_ROLLED_BACK extension with the provided event destination and also creates an extension association to the environment.
420 421 422 423 424 425 |
# File 'app_config/environment.rb', line 420 def on_deployment_rolled_back(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("onDeploymentRolledBack", [event_destination, ]) end |
#on_deployment_start(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an ON_DEPLOYMENT_START extension with the provided event destination and also creates an extension association to the environment.
432 433 434 435 436 437 |
# File 'app_config/environment.rb', line 432 def on_deployment_start(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("onDeploymentStart", [event_destination, ]) end |
#on_deployment_step(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds an ON_DEPLOYMENT_STEP extension with the provided event destination and also creates an extension association to the environment.
444 445 446 447 448 449 |
# File 'app_config/environment.rb', line 444 def on_deployment_step(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("onDeploymentStep", [event_destination, ]) end |
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
This value will resolve to one of the following:
- a concrete value (e.g.
"my-awesome-bucket") undefined, when a name should be generated by CloudFormation- a concrete name generated automatically during synthesis, in cross-environment scenarios.
124 125 126 |
# File 'app_config/environment.rb', line 124 def physical_name() jsii_get_property("physicalName") end |
#pre_create_hosted_configuration_version(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds a PRE_CREATE_HOSTED_CONFIGURATION_VERSION extension with the provided event destination and also creates an extension association to the environment.
456 457 458 459 460 461 |
# File 'app_config/environment.rb', line 456 def pre_create_hosted_configuration_version(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("preCreateHostedConfigurationVersion", [event_destination, ]) end |
#pre_start_deployment(event_destination, options = nil) ⇒ void
This method returns an undefined value.
Adds a PRE_START_DEPLOYMENT extension with the provided event destination and also creates an extension association to the environment.
468 469 470 471 472 473 |
# File 'app_config/environment.rb', line 468 def pre_start_deployment(event_destination, = nil) Jsii::Type.check_type(event_destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFdmVudERlc3RpbmF0aW9uIn0=")), "eventDestination") = .is_a?(Hash) ? ::AWSCDK::AppConfig::ExtensionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkV4dGVuc2lvbk9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("preStartDeployment", [event_destination, ]) end |
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
131 132 133 |
# File 'app_config/environment.rb', line 131 def stack() jsii_get_property("stack") end |
#to_string ⇒ String
Returns a string representation of this construct.
221 222 223 |
# File 'app_config/environment.rb', line 221 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
234 235 236 237 238 239 |
# File 'app_config/environment.rb', line 234 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |