Class: Aws::AppConfig::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::AppConfig::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb
Overview
An API client for AppConfig. To construct a client, you need to configure a :region and :credentials.
client = Aws::AppConfig::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_application(params = {}) ⇒ Types::Application
Creates an application.
-
#create_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Creates a configuration profile, which is information that enables AppConfig to access the configuration source.
-
#create_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets.
-
#create_environment(params = {}) ⇒ Types::Environment
Creates an environment.
-
#create_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Creates an experiment definition in AppConfig.
-
#create_extension(params = {}) ⇒ Types::Extension
Creates an AppConfig extension.
-
#create_extension_association(params = {}) ⇒ Types::ExtensionAssociation
When you create an extension or configure an Amazon Web Services authored extension, you associate the extension with an AppConfig application, environment, or configuration profile.
-
#create_hosted_configuration_version(params = {}) ⇒ Types::HostedConfigurationVersion
Creates a new configuration in the AppConfig hosted configuration store.
-
#delete_application(params = {}) ⇒ Struct
Deletes an application.
-
#delete_configuration_profile(params = {}) ⇒ Struct
Deletes a configuration profile.
-
#delete_deployment_strategy(params = {}) ⇒ Struct
Deletes a deployment strategy.
-
#delete_environment(params = {}) ⇒ Struct
Deletes an environment.
-
#delete_experiment_definition(params = {}) ⇒ Struct
Deletes an experiment definition.
-
#delete_extension(params = {}) ⇒ Struct
Deletes an AppConfig extension.
-
#delete_extension_association(params = {}) ⇒ Struct
Deletes an extension association.
-
#delete_hosted_configuration_version(params = {}) ⇒ Struct
Deletes a version of a configuration from the AppConfig hosted configuration store.
-
#get_account_settings(params = {}) ⇒ Types::AccountSettings
Returns information about the status of the
DeletionProtectionparameter. -
#get_application(params = {}) ⇒ Types::Application
Retrieves information about an application.
-
#get_configuration(params = {}) ⇒ Types::Configuration
(Deprecated) Retrieves the latest deployed configuration.
-
#get_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Retrieves information about a configuration profile.
-
#get_deployment(params = {}) ⇒ Types::Deployment
Retrieves information about a configuration deployment.
-
#get_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Retrieves information about a deployment strategy.
-
#get_environment(params = {}) ⇒ Types::Environment
Retrieves information about an environment.
-
#get_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Retrieves information about an experiment definition.
-
#get_experiment_run(params = {}) ⇒ Types::ExperimentRun
Retrieves information about an experiment run, including its status, start time, and exposure settings.
-
#get_extension(params = {}) ⇒ Types::Extension
Returns information about an AppConfig extension.
-
#get_extension_association(params = {}) ⇒ Types::ExtensionAssociation
Returns information about an AppConfig extension association.
-
#get_hosted_configuration_version(params = {}) ⇒ Types::HostedConfigurationVersion
Retrieves information about a specific configuration version.
-
#list_applications(params = {}) ⇒ Types::Applications
Lists all applications in your Amazon Web Services account.
-
#list_configuration_profiles(params = {}) ⇒ Types::ConfigurationProfiles
Lists the configuration profiles for an application.
-
#list_deployment_strategies(params = {}) ⇒ Types::DeploymentStrategies
Lists deployment strategies.
-
#list_deployments(params = {}) ⇒ Types::Deployments
Lists the deployments for an environment in descending deployment number order.
-
#list_environments(params = {}) ⇒ Types::Environments
Lists the environments for an application.
-
#list_experiment_definitions(params = {}) ⇒ Types::ExperimentDefinitions
Lists the experiment definitions for an account.
-
#list_experiment_run_events(params = {}) ⇒ Types::ExperimentRunEvents
Lists the events for a specified experiment run.
-
#list_experiment_runs(params = {}) ⇒ Types::ExperimentRuns
Lists the experiment runs for a specified experiment definition.
-
#list_extension_associations(params = {}) ⇒ Types::ExtensionAssociations
Lists all AppConfig extension associations in the account.
-
#list_extensions(params = {}) ⇒ Types::Extensions
Lists all custom and Amazon Web Services authored AppConfig extensions in the account.
-
#list_hosted_configuration_versions(params = {}) ⇒ Types::HostedConfigurationVersions
Lists configurations stored in the AppConfig hosted configuration store by version.
-
#list_tags_for_resource(params = {}) ⇒ Types::ResourceTags
Retrieves the list of key-value tags assigned to the resource.
-
#start_deployment(params = {}) ⇒ Types::Deployment
Starts a deployment.
-
#start_experiment_run(params = {}) ⇒ Types::ExperimentRun
Starts an experiment run for the specified experiment definition.
-
#stop_deployment(params = {}) ⇒ Types::Deployment
Stops a deployment.
-
#stop_experiment_run(params = {}) ⇒ Types::ExperimentRun
Stops a running experiment.
-
#tag_resource(params = {}) ⇒ Struct
Assigns metadata to an AppConfig resource.
-
#untag_resource(params = {}) ⇒ Struct
Deletes a tag key and value from an AppConfig resource.
-
#update_account_settings(params = {}) ⇒ Types::AccountSettings
Updates the value of the
DeletionProtectionparameter. -
#update_application(params = {}) ⇒ Types::Application
Updates an application.
-
#update_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Updates a configuration profile.
-
#update_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Updates a deployment strategy.
-
#update_environment(params = {}) ⇒ Types::Environment
Updates an environment.
-
#update_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Updates an experiment definition.
-
#update_experiment_run(params = {}) ⇒ Types::ExperimentRun
Updates a running experiment.
-
#update_extension(params = {}) ⇒ Types::Extension
Updates an AppConfig extension.
-
#update_extension_association(params = {}) ⇒ Types::ExtensionAssociation
Updates an association.
-
#validate_configuration(params = {}) ⇒ Struct
Uses the validators in a configuration profile to validate a configuration.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#create_application(params = {}) ⇒ Types::Application
Creates an application. In AppConfig, an application is simply an organizational construct like a folder. This organizational construct has a relationship with some unit of executable code. For example, you could create an application called MyMobileApp to organize and manage configuration data for a mobile application installed by your users.
537 538 539 540 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 537 def create_application(params = {}, = {}) req = build_request(:create_application, params) req.send_request() end |
#create_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Creates a configuration profile, which is information that enables AppConfig to access the configuration source. Valid configuration sources include the following:
Configuration data in YAML, JSON, and other formats stored in the AppConfig hosted configuration store
Configuration data stored as objects in an Amazon Simple Storage Service (Amazon S3) bucket
Pipelines stored in CodePipeline
Secrets stored in Secrets Manager
Standard and secure string parameters stored in Amazon Web Services Systems Manager Parameter Store
Configuration data in SSM documents stored in the Systems Manager document store
A configuration profile includes the following information:
The URI location of the configuration data.
The Identity and Access Management (IAM) role that provides access to the configuration data.
A validator for the configuration data. Available validators include either a JSON Schema or an Amazon Web Services Lambda function.
For more information, see Create a Configuration and a Configuration Profile in the AppConfig User Guide.
723 724 725 726 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 723 def create_configuration_profile(params = {}, = {}) req = build_request(:create_configuration_profile, params) req.send_request() end |
#create_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.
879 880 881 882 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 879 def create_deployment_strategy(params = {}, = {}) req = build_request(:create_deployment_strategy, params) req.send_request() end |
#create_environment(params = {}) ⇒ Types::Environment
Creates an environment. For each application, you define one or more
environments. An environment is a deployment group of AppConfig
targets, such as applications in a Beta or Production environment.
You can also define environments for application subcomponents such as
the Web, Mobile and Back-end components for your application.
You can configure Amazon CloudWatch alarms for each environment. The
system monitors alarms during a configuration deployment. If an alarm
is triggered, the system rolls back the configuration.
970 971 972 973 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 970 def create_environment(params = {}, = {}) req = build_request(:create_environment, params) req.send_request() end |
#create_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Creates an experiment definition in AppConfig. An experiment definition describes the purpose, scope, and operational configuration of an experiment, including the target audience, feature flag, and treatment configurations.
1173 1174 1175 1176 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1173 def create_experiment_definition(params = {}, = {}) req = build_request(:create_experiment_definition, params) req.send_request() end |
#create_extension(params = {}) ⇒ Types::Extension
Creates an AppConfig extension. An extension augments your ability to inject logic or behavior at different points during the AppConfig workflow of creating or deploying a configuration.
You can create your own extensions or use the Amazon Web Services
authored extensions provided by AppConfig. For an AppConfig extension
that uses Lambda, you must create a Lambda function to perform any
computation and processing defined in the extension. If you plan to
create custom versions of the Amazon Web Services authored
notification extensions, you only need to specify an Amazon Resource
Name (ARN) in the Uri field for the new extension version.
For a custom EventBridge notification extension, enter the ARN of the EventBridge default events in the
Urifield.For a custom Amazon SNS notification extension, enter the ARN of an Amazon SNS topic in the
Urifield.For a custom Amazon SQS notification extension, enter the ARN of an Amazon SQS message queue in the
Urifield.
For more information about extensions, see Extending workflows in the AppConfig User Guide.
1293 1294 1295 1296 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1293 def create_extension(params = {}, = {}) req = build_request(:create_extension, params) req.send_request() end |
#create_extension_association(params = {}) ⇒ Types::ExtensionAssociation
When you create an extension or configure an Amazon Web Services
authored extension, you associate the extension with an AppConfig
application, environment, or configuration profile. For example, you
can choose to run the AppConfig deployment events to Amazon SNS
Amazon Web Services authored extension and receive notifications on an
Amazon SNS topic anytime a configuration deployment is started for a
specific application. Defining which extension to associate with an
AppConfig resource is called an extension association. An extension
association is a specified relationship between an extension and an
AppConfig resource, such as an application or a configuration profile.
For more information about extensions and associations, see Extending
workflows in the AppConfig User Guide.
1372 1373 1374 1375 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1372 def create_extension_association(params = {}, = {}) req = build_request(:create_extension_association, params) req.send_request() end |
#create_hosted_configuration_version(params = {}) ⇒ Types::HostedConfigurationVersion
Creates a new configuration in the AppConfig hosted configuration store. If you're creating a feature flag, we recommend you familiarize yourself with the JSON schema for feature flag data. For more information, see Type reference for AWS.AppConfig.FeatureFlags in the AppConfig User Guide.
1488 1489 1490 1491 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1488 def create_hosted_configuration_version(params = {}, = {}) req = build_request(:create_hosted_configuration_version, params) req.send_request() end |
#delete_application(params = {}) ⇒ Struct
Deletes an application.
1519 1520 1521 1522 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1519 def delete_application(params = {}, = {}) req = build_request(:delete_application, params) req.send_request() end |
#delete_configuration_profile(params = {}) ⇒ Struct
Deletes a configuration profile.
To prevent users from unintentionally deleting actively-used configuration profiles, enable deletion protection.
1590 1591 1592 1593 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1590 def delete_configuration_profile(params = {}, = {}) req = build_request(:delete_configuration_profile, params) req.send_request() end |
#delete_deployment_strategy(params = {}) ⇒ Struct
Deletes a deployment strategy.
1621 1622 1623 1624 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1621 def delete_deployment_strategy(params = {}, = {}) req = build_request(:delete_deployment_strategy, params) req.send_request() end |
#delete_environment(params = {}) ⇒ Struct
Deletes an environment.
To prevent users from unintentionally deleting actively-used environments, enable deletion protection.
1692 1693 1694 1695 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1692 def delete_environment(params = {}, = {}) req = build_request(:delete_environment, params) req.send_request() end |
#delete_experiment_definition(params = {}) ⇒ Struct
Deletes an experiment definition. You can archive the definition to hide it from the active list while preserving it for future reference, or permanently delete it along with all associated run history.
1735 1736 1737 1738 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1735 def delete_experiment_definition(params = {}, = {}) req = build_request(:delete_experiment_definition, params) req.send_request() end |
#delete_extension(params = {}) ⇒ Struct
Deletes an AppConfig extension. You must delete all associations to an extension before you delete the extension.
1764 1765 1766 1767 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1764 def delete_extension(params = {}, = {}) req = build_request(:delete_extension, params) req.send_request() end |
#delete_extension_association(params = {}) ⇒ Struct
Deletes an extension association. This action doesn't delete extensions defined in the association.
1787 1788 1789 1790 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1787 def delete_extension_association(params = {}, = {}) req = build_request(:delete_extension_association, params) req.send_request() end |
#delete_hosted_configuration_version(params = {}) ⇒ Struct
Deletes a version of a configuration from the AppConfig hosted configuration store.
1830 1831 1832 1833 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1830 def delete_hosted_configuration_version(params = {}, = {}) req = build_request(:delete_hosted_configuration_version, params) req.send_request() end |
#get_account_settings(params = {}) ⇒ Types::AccountSettings
Returns information about the status of the DeletionProtection
parameter.
1853 1854 1855 1856 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1853 def get_account_settings(params = {}, = {}) req = build_request(:get_account_settings, params) req.send_request() end |
#get_application(params = {}) ⇒ Types::Application
Retrieves information about an application.
1900 1901 1902 1903 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 1900 def get_application(params = {}, = {}) req = build_request(:get_application, params) req.send_request() end |
#get_configuration(params = {}) ⇒ Types::Configuration
(Deprecated) Retrieves the latest deployed configuration.
Note the following important information.
This API action is deprecated. Calls to receive configuration data should use the StartConfigurationSession and GetLatestConfiguration APIs instead.
GetConfiguration is a priced call. For more information, see Pricing.
2017 2018 2019 2020 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2017 def get_configuration(params = {}, = {}) req = build_request(:get_configuration, params) req.send_request() end |
#get_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Retrieves information about a configuration profile.
2089 2090 2091 2092 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2089 def get_configuration_profile(params = {}, = {}) req = build_request(:get_configuration_profile, params) req.send_request() end |
#get_deployment(params = {}) ⇒ Types::Deployment
Retrieves information about a configuration deployment.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- deployment_complete
2267 2268 2269 2270 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2267 def get_deployment(params = {}, = {}) req = build_request(:get_deployment, params) req.send_request() end |
#get_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Retrieves information about a deployment strategy. A deployment strategy defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.
2334 2335 2336 2337 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2334 def get_deployment_strategy(params = {}, = {}) req = build_request(:get_deployment_strategy, params) req.send_request() end |
#get_environment(params = {}) ⇒ Types::Environment
Retrieves information about an environment. An environment is a
deployment group of AppConfig applications, such as applications in a
Production environment or in an EU_Region environment. Each
configuration deployment targets an environment. You can enable one or
more Amazon CloudWatch alarms for an environment. If an alarm is
triggered during a deployment, AppConfig roles back the configuration.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- environment_ready_for_deployment
2407 2408 2409 2410 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2407 def get_environment(params = {}, = {}) req = build_request(:get_environment, params) req.send_request() end |
#get_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Retrieves information about an experiment definition.
2520 2521 2522 2523 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2520 def get_experiment_definition(params = {}, = {}) req = build_request(:get_experiment_definition, params) req.send_request() end |
#get_experiment_run(params = {}) ⇒ Types::ExperimentRun
Retrieves information about an experiment run, including its status, start time, and exposure settings.
2651 2652 2653 2654 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2651 def get_experiment_run(params = {}, = {}) req = build_request(:get_experiment_run, params) req.send_request() end |
#get_extension(params = {}) ⇒ Types::Extension
Returns information about an AppConfig extension.
2704 2705 2706 2707 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2704 def get_extension(params = {}, = {}) req = build_request(:get_extension, params) req.send_request() end |
#get_extension_association(params = {}) ⇒ Types::ExtensionAssociation
Returns information about an AppConfig extension association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
2749 2750 2751 2752 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2749 def get_extension_association(params = {}, = {}) req = build_request(:get_extension_association, params) req.send_request() end |
#get_hosted_configuration_version(params = {}) ⇒ Types::HostedConfigurationVersion
Retrieves information about a specific configuration version.
2819 2820 2821 2822 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2819 def get_hosted_configuration_version(params = {}, = {}) req = build_request(:get_hosted_configuration_version, params) req.send_request() end |
#list_applications(params = {}) ⇒ Types::Applications
Lists all applications in your Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2888 2889 2890 2891 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2888 def list_applications(params = {}, = {}) req = build_request(:list_applications, params) req.send_request() end |
#list_configuration_profiles(params = {}) ⇒ Types::ConfigurationProfiles
Lists the configuration profiles for an application.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2966 2967 2968 2969 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 2966 def list_configuration_profiles(params = {}, = {}) req = build_request(:list_configuration_profiles, params) req.send_request() end |
#list_deployment_strategies(params = {}) ⇒ Types::DeploymentStrategies
Lists deployment strategies.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3036 3037 3038 3039 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3036 def list_deployment_strategies(params = {}, = {}) req = build_request(:list_deployment_strategies, params) req.send_request() end |
#list_deployments(params = {}) ⇒ Types::Deployments
Lists the deployments for an environment in descending deployment number order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3130 3131 3132 3133 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3130 def list_deployments(params = {}, = {}) req = build_request(:list_deployments, params) req.send_request() end |
#list_environments(params = {}) ⇒ Types::Environments
Lists the environments for an application.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3203 3204 3205 3206 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3203 def list_environments(params = {}, = {}) req = build_request(:list_environments, params) req.send_request() end |
#list_experiment_definitions(params = {}) ⇒ Types::ExperimentDefinitions
Lists the experiment definitions for an account. You can filter results by application, configuration profile, environment, or status.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3292 3293 3294 3295 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3292 def list_experiment_definitions(params = {}, = {}) req = build_request(:list_experiment_definitions, params) req.send_request() end |
#list_experiment_run_events(params = {}) ⇒ Types::ExperimentRunEvents
Lists the events for a specified experiment run. Events provide a timeline of actions and state changes that occurred during the run.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3380 3381 3382 3383 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3380 def list_experiment_run_events(params = {}, = {}) req = build_request(:list_experiment_run_events, params) req.send_request() end |
#list_experiment_runs(params = {}) ⇒ Types::ExperimentRuns
Lists the experiment runs for a specified experiment definition. You can filter by status.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3460 3461 3462 3463 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3460 def list_experiment_runs(params = {}, = {}) req = build_request(:list_experiment_runs, params) req.send_request() end |
#list_extension_associations(params = {}) ⇒ Types::ExtensionAssociations
Lists all AppConfig extension associations in the account. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3520 3521 3522 3523 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3520 def list_extension_associations(params = {}, = {}) req = build_request(:list_extension_associations, params) req.send_request() end |
#list_extensions(params = {}) ⇒ Types::Extensions
Lists all custom and Amazon Web Services authored AppConfig extensions in the account. For more information about extensions, see Extending workflows in the AppConfig User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3574 3575 3576 3577 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3574 def list_extensions(params = {}, = {}) req = build_request(:list_extensions, params) req.send_request() end |
#list_hosted_configuration_versions(params = {}) ⇒ Types::HostedConfigurationVersions
Lists configurations stored in the AppConfig hosted configuration store by version.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3661 3662 3663 3664 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3661 def list_hosted_configuration_versions(params = {}, = {}) req = build_request(:list_hosted_configuration_versions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ResourceTags
Retrieves the list of key-value tags assigned to the resource.
3706 3707 3708 3709 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3706 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#start_deployment(params = {}) ⇒ Types::Deployment
Starts a deployment.
3902 3903 3904 3905 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 3902 def start_deployment(params = {}, = {}) req = build_request(:start_deployment, params) req.send_request() end |
#start_experiment_run(params = {}) ⇒ Types::ExperimentRun
Starts an experiment run for the specified experiment definition. An experiment run delivers treatments to the target audience and collects metrics. You can start multiple experiment runs from the same experiment definition.
4066 4067 4068 4069 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4066 def start_experiment_run(params = {}, = {}) req = build_request(:start_experiment_run, params) req.send_request() end |
#stop_deployment(params = {}) ⇒ Types::Deployment
Stops a deployment. This API action works only on deployments that
have a status of DEPLOYING, unless an AllowRevert parameter is
supplied. If the AllowRevert parameter is supplied, the status of an
in-progress deployment will be ROLLED_BACK. The status of a
completed deployment will be REVERTED. AppConfig only allows a
revert within 72 hours of deployment completion.
4192 4193 4194 4195 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4192 def stop_deployment(params = {}, = {}) req = build_request(:stop_deployment, params) req.send_request() end |
#stop_experiment_run(params = {}) ⇒ Types::ExperimentRun
Stops a running experiment. Stopping an experiment run ends audience exposure and returns users to the currently deployed feature flag configuration.
4353 4354 4355 4356 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4353 def stop_experiment_run(params = {}, = {}) req = build_request(:stop_experiment_run, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns metadata to an AppConfig resource. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.
4398 4399 4400 4401 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4398 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes a tag key and value from an AppConfig resource.
4436 4437 4438 4439 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4436 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_account_settings(params = {}) ⇒ Types::AccountSettings
Updates the value of the DeletionProtection parameter.
4485 4486 4487 4488 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4485 def update_account_settings(params = {}, = {}) req = build_request(:update_account_settings, params) req.send_request() end |
#update_application(params = {}) ⇒ Types::Application
Updates an application.
4543 4544 4545 4546 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4543 def update_application(params = {}, = {}) req = build_request(:update_application, params) req.send_request() end |
#update_configuration_profile(params = {}) ⇒ Types::ConfigurationProfile
Updates a configuration profile.
4652 4653 4654 4655 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4652 def update_configuration_profile(params = {}, = {}) req = build_request(:update_configuration_profile, params) req.send_request() end |
#update_deployment_strategy(params = {}) ⇒ Types::DeploymentStrategy
Updates a deployment strategy.
4765 4766 4767 4768 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4765 def update_deployment_strategy(params = {}, = {}) req = build_request(:update_deployment_strategy, params) req.send_request() end |
#update_environment(params = {}) ⇒ Types::Environment
Updates an environment.
4846 4847 4848 4849 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 4846 def update_environment(params = {}, = {}) req = build_request(:update_environment, params) req.send_request() end |
#update_experiment_definition(params = {}) ⇒ Types::ExperimentDefinition
Updates an experiment definition. You can update treatments, the control, audience rules, and other properties. You cannot update an experiment definition while an experiment run is active.
5008 5009 5010 5011 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5008 def update_experiment_definition(params = {}, = {}) req = build_request(:update_experiment_definition, params) req.send_request() end |
#update_experiment_run(params = {}) ⇒ Types::ExperimentRun
Updates a running experiment. Use this operation to increase audience exposure, modify treatment assignment overrides, or update the description of an active experiment run. Audience exposure can only be increased, not decreased.
5170 5171 5172 5173 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5170 def update_experiment_run(params = {}, = {}) req = build_request(:update_experiment_run, params) req.send_request() end |
#update_extension(params = {}) ⇒ Types::Extension
Updates an AppConfig extension. For more information about extensions, see Extending workflows in the AppConfig User Guide.
5254 5255 5256 5257 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5254 def update_extension(params = {}, = {}) req = build_request(:update_extension, params) req.send_request() end |
#update_extension_association(params = {}) ⇒ Types::ExtensionAssociation
Updates an association. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.
5305 5306 5307 5308 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5305 def update_extension_association(params = {}, = {}) req = build_request(:update_extension_association, params) req.send_request() end |
#validate_configuration(params = {}) ⇒ Struct
Uses the validators in a configuration profile to validate a configuration.
5347 5348 5349 5350 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5347 def validate_configuration(params = {}, = {}) req = build_request(:validate_configuration, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| deployment_complete | #get_deployment | 30 | 999 |
| environment_ready_for_deployment | #get_environment | 30 | 999 |
5463 5464 5465 5466 5467 |
# File 'gems/aws-sdk-appconfig/lib/aws-sdk-appconfig/client.rb', line 5463 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |