1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateStackInstances`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`stack_set_name(impl Into<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::stack_set_name) / [`set_stack_set_name(Option<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_stack_set_name):<br>required: **true**<br><p>The name or unique ID of the stack set associated with the stack instances.</p><br>
    ///   - [`accounts(impl Into<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::accounts) / [`set_accounts(Option<Vec::<String>>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_accounts):<br>required: **false**<br><p>[Self-managed permissions] The names of one or more Amazon Web Services accounts for which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions.</p> <p>You can specify <code>Accounts</code> or <code>DeploymentTargets</code>, but not both.</p><br>
    ///   - [`deployment_targets(DeploymentTargets)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::deployment_targets) / [`set_deployment_targets(Option<DeploymentTargets>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_deployment_targets):<br>required: **false**<br><p>[Service-managed permissions] The Organizations accounts for which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values.</p> <p>You can specify <code>Accounts</code> or <code>DeploymentTargets</code>, but not both.</p><br>
    ///   - [`regions(impl Into<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::regions) / [`set_regions(Option<Vec::<String>>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_regions):<br>required: **true**<br><p>The names of one or more Amazon Web Services Regions in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions.</p><br>
    ///   - [`parameter_overrides(Parameter)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::parameter_overrides) / [`set_parameter_overrides(Option<Vec::<Parameter>>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_parameter_overrides):<br>required: **false**<br><p>A list of input parameters whose values you want to update for the specified stack instances.</p> <p>Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance update operations:</p> <ul>  <li>   <p>To override the current value for a parameter, include the parameter and specify its value.</p></li>  <li>   <p>To leave an overridden parameter set to its present value, include the parameter and specify <code>UsePreviousValue</code> as <code>true</code>. (You can't specify both a value and set <code>UsePreviousValue</code> to <code>true</code>.)</p></li>  <li>   <p>To set an overridden parameter back to the value specified in the stack set, specify a parameter list but don't include the parameter in the list.</p></li>  <li>   <p>To leave all parameters set to their present values, don't specify this property at all.</p></li> </ul> <p>During stack set updates, any parameter values overridden for a stack instance aren't updated, but retain their overridden value.</p> <p>You can only override the parameter <i>values</i> that are specified in the stack set; to add or delete a parameter itself, use <code>UpdateStackSet</code> to update the stack set template. If you add a parameter to a template, before you can override the parameter value specified in the stack set you must first use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html">UpdateStackSet</a> to update all stack instances with the updated template and parameter value specified in the stack set. Once a stack instance has been updated with the new parameter, you can then override the parameter value using <code>UpdateStackInstances</code>.</p><br>
    ///   - [`operation_preferences(StackSetOperationPreferences)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::operation_preferences) / [`set_operation_preferences(Option<StackSetOperationPreferences>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_operation_preferences):<br>required: **false**<br><p>Preferences for how CloudFormation performs this stack set operation.</p><br>
    ///   - [`operation_id(impl Into<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::operation_id) / [`set_operation_id(Option<String>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_operation_id):<br>required: **false**<br><p>The unique identifier for this stack set operation.</p> <p>The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the stack set operation only once, even if you retry the request multiple times. You might retry stack set operation requests to ensure that CloudFormation successfully received them.</p> <p>If you don't specify an operation ID, the SDK generates one automatically.</p><br>
    ///   - [`call_as(CallAs)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::call_as) / [`set_call_as(Option<CallAs>)`](crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::set_call_as):<br>required: **false**<br><p>[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.</p> <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for stack sets with self-managed permissions.</p> <ul>  <li>   <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>  <li>   <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>   <p>Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html">Register a delegated administrator</a> in the <i>CloudFormation User Guide</i>.</p></li> </ul><br>
    /// - On success, responds with [`UpdateStackInstancesOutput`](crate::operation::update_stack_instances::UpdateStackInstancesOutput) with field(s):
    ///   - [`operation_id(Option<String>)`](crate::operation::update_stack_instances::UpdateStackInstancesOutput::operation_id): <p>The unique identifier for this stack set operation.</p>
    /// - On failure, responds with [`SdkError<UpdateStackInstancesError>`](crate::operation::update_stack_instances::UpdateStackInstancesError)
    pub fn update_stack_instances(&self) -> crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder {
        crate::operation::update_stack_instances::builders::UpdateStackInstancesFluentBuilder::new(self.handle.clone())
    }
}