Module: AWSCDK::AppConfig::IApplication
- Includes:
- IResource, Interfaces::AWSAppconfig::IApplicationRef
- Included in:
- Application
- Defined in:
- app_config/i_application.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#add_environment(id, options = nil) ⇒ AWSCDK::AppConfig::IEnvironment
Adds an environment.
-
#add_existing_environment(environment) ⇒ void
Adds an existing environment.
-
#add_extension(extension) ⇒ void
Adds an extension association to the application.
-
#add_hosted_configuration(id, options) ⇒ AWSCDK::AppConfig::HostedConfiguration
Adds a hosted configuration.
-
#add_sourced_configuration(id, options) ⇒ AWSCDK::AppConfig::SourcedConfiguration
Adds a sourced configuration.
-
#application_arn ⇒ String
The Amazon Resource Name (ARN) of the application.
-
#application_id ⇒ String
The ID of the application.
-
#application_ref ⇒ AWSCDK::Interfaces::AWSAppconfig::ApplicationReference
A reference to a Application 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.
-
#description ⇒ String?
The description of the application.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
-
#environments ⇒ Array<AWSCDK::AppConfig::IEnvironment>
Returns the list of associated environments.
-
#name ⇒ String?
The name of the application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#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 an application.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Class Method Details
.jsii_overridable_methods ⇒ Object
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'app_config/i_application.rb', line 274 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :application_ref => { kind: :property, name: "applicationRef", is_optional: false }, :application_arn => { kind: :property, name: "applicationArn", is_optional: false }, :application_id => { kind: :property, name: "applicationId", is_optional: false }, :description => { kind: :property, name: "description", is_optional: true }, :name => { kind: :property, name: "name", is_optional: true }, :with => { kind: :method, name: "with", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :add_environment => { kind: :method, name: "addEnvironment", is_optional: false }, :add_existing_environment => { kind: :method, name: "addExistingEnvironment", is_optional: false }, :add_extension => { kind: :method, name: "addExtension", is_optional: false }, :add_hosted_configuration => { kind: :method, name: "addHostedConfiguration", is_optional: false }, :add_sourced_configuration => { kind: :method, name: "addSourcedConfiguration", is_optional: false }, :at_deployment_tick => { kind: :method, name: "atDeploymentTick", is_optional: false }, :environments => { kind: :method, name: "environments", 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 |
Instance Method Details
#add_environment(id, options = nil) ⇒ AWSCDK::AppConfig::IEnvironment
Adds an environment.
108 109 110 111 112 113 |
# File 'app_config/i_application.rb', line 108 def add_environment(id, = nil) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") = .is_a?(Hash) ? ::AWSCDK::AppConfig::EnvironmentOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkVudmlyb25tZW50T3B0aW9ucyJ9")), "options") unless .nil? jsii_call_method("addEnvironment", [id, ]) end |
#add_existing_environment(environment) ⇒ void
This method returns an undefined value.
Adds an existing environment.
119 120 121 122 |
# File 'app_config/i_application.rb', line 119 def add_existing_environment(environment) Jsii::Type.check_type(environment, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcHBjb25maWcuSUVudmlyb25tZW50UmVmIn0=")), "environment") jsii_call_method("addExistingEnvironment", [environment]) end |
#add_extension(extension) ⇒ void
This method returns an undefined value.
Adds an extension association to the application.
128 129 130 131 |
# File 'app_config/i_application.rb', line 128 def add_extension(extension) Jsii::Type.check_type(extension, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLklFeHRlbnNpb24ifQ==")), "extension") jsii_call_method("addExtension", [extension]) end |
#add_hosted_configuration(id, options) ⇒ AWSCDK::AppConfig::HostedConfiguration
Adds a hosted configuration.
138 139 140 141 142 143 |
# File 'app_config/i_application.rb', line 138 def add_hosted_configuration(id, ) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") = .is_a?(Hash) ? ::AWSCDK::AppConfig::HostedConfigurationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLkhvc3RlZENvbmZpZ3VyYXRpb25PcHRpb25zIn0=")), "options") jsii_call_method("addHostedConfiguration", [id, ]) end |
#add_sourced_configuration(id, options) ⇒ AWSCDK::AppConfig::SourcedConfiguration
Adds a sourced configuration.
150 151 152 153 154 155 |
# File 'app_config/i_application.rb', line 150 def add_sourced_configuration(id, ) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") = .is_a?(Hash) ? ::AWSCDK::AppConfig::SourcedConfigurationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwY29uZmlnLlNvdXJjZWRDb25maWd1cmF0aW9uT3B0aW9ucyJ9")), "options") jsii_call_method("addSourcedConfiguration", [id, ]) end |
#application_arn ⇒ String
The Amazon Resource Name (ARN) of the application.
47 48 49 |
# File 'app_config/i_application.rb', line 47 def application_arn() jsii_get_property("applicationArn") end |
#application_id ⇒ String
The ID of the application.
54 55 56 |
# File 'app_config/i_application.rb', line 54 def application_id() jsii_get_property("applicationId") end |
#application_ref ⇒ AWSCDK::Interfaces::AWSAppconfig::ApplicationReference
A reference to a Application resource.
40 41 42 |
# File 'app_config/i_application.rb', line 40 def application_ref() jsii_get_property("applicationRef") 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).
98 99 100 101 |
# File 'app_config/i_application.rb', line 98 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.
162 163 164 165 166 167 |
# File 'app_config/i_application.rb', line 162 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 |
#description ⇒ String?
The description of the application.
61 62 63 |
# File 'app_config/i_application.rb', line 61 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.
26 27 28 |
# File 'app_config/i_application.rb', line 26 def env() jsii_get_property("env") end |
#environments ⇒ Array<AWSCDK::AppConfig::IEnvironment>
Returns the list of associated environments.
172 173 174 |
# File 'app_config/i_application.rb', line 172 def environments() jsii_call_method("environments", []) end |
#name ⇒ String?
The name of the application.
68 69 70 |
# File 'app_config/i_application.rb', line 68 def name() jsii_get_property("name") end |
#node ⇒ Constructs::Node
The tree node.
11 12 13 |
# File 'app_config/i_application.rb', line 11 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 an application.
182 183 184 185 186 187 188 |
# File 'app_config/i_application.rb', line 182 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 an application.
195 196 197 198 199 200 |
# File 'app_config/i_application.rb', line 195 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 an application.
207 208 209 210 211 212 |
# File 'app_config/i_application.rb', line 207 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 an application.
219 220 221 222 223 224 |
# File 'app_config/i_application.rb', line 219 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 an application.
231 232 233 234 235 236 |
# File 'app_config/i_application.rb', line 231 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 an application.
243 244 245 246 247 248 |
# File 'app_config/i_application.rb', line 243 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 |
#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 an application.
255 256 257 258 259 260 |
# File 'app_config/i_application.rb', line 255 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 an application.
267 268 269 270 271 272 |
# File 'app_config/i_application.rb', line 267 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.
33 34 35 |
# File 'app_config/i_application.rb', line 33 def stack() jsii_get_property("stack") 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.
79 80 81 82 83 84 |
# File 'app_config/i_application.rb', line 79 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 |