pub struct UpdateConstraintInput {
pub accept_language: Option<String>,
pub description: Option<String>,
pub id: String,
pub parameters: Option<String>,
}
Fields
accept_language: Option<String>
The language code.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
description: Option<String>
The updated description of the constraint.
id: String
The identifier of the constraint.
parameters: Option<String>
The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:
- LAUNCH
-
You are required to specify either the
RoleArn
or theLocalRoleName
but can't use both.Specify the
RoleArn
property as follows:{"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}
Specify the
LocalRoleName
property as follows:{"LocalRoleName": "SCBasicLaunchRole"}
If you specify the
LocalRoleName
property, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator can create fewer resources per shared account.The given role name must exist in the account used to create the launch constraint and the account of the user who launches a product with this launch constraint.
You cannot have both a
LAUNCH
and aSTACKSET
constraint.You also cannot have more than one
LAUNCH
constraint on a product and portfolio. - NOTIFICATION
-
Specify the
NotificationArns
property as follows:{"NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"]}
- RESOURCEUPDATE
-
Specify the
TagUpdatesOnProvisionedProduct
property as follows:{"Version":"2.0","Properties":{"TagUpdateOnProvisionedProduct":"String"}}
The
TagUpdatesOnProvisionedProduct
property accepts a string value ofALLOWED
orNOTALLOWED
. - STACKSET
-
Specify the
Parameters
property as follows:{"Version": "String", "Properties": {"AccountList": [ "String" ], "RegionList": [ "String" ], "AdminRole": "String", "ExecutionRole": "String"}}
You cannot have both a
LAUNCH
and aSTACKSET
constraint.You also cannot have more than one
STACKSET
constraint on a product and portfolio.Products with a
STACKSET
constraint will launch an AWS CloudFormation stack set. - TEMPLATE
-
Specify the
Rules
property. For more information, see Template Constraint Rules.
Trait Implementations
sourceimpl Clone for UpdateConstraintInput
impl Clone for UpdateConstraintInput
sourcefn clone(&self) -> UpdateConstraintInput
fn clone(&self) -> UpdateConstraintInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateConstraintInput
impl Debug for UpdateConstraintInput
sourceimpl Default for UpdateConstraintInput
impl Default for UpdateConstraintInput
sourcefn default() -> UpdateConstraintInput
fn default() -> UpdateConstraintInput
Returns the “default value” for a type. Read more
sourceimpl PartialEq<UpdateConstraintInput> for UpdateConstraintInput
impl PartialEq<UpdateConstraintInput> for UpdateConstraintInput
sourcefn eq(&self, other: &UpdateConstraintInput) -> bool
fn eq(&self, other: &UpdateConstraintInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateConstraintInput) -> bool
fn ne(&self, other: &UpdateConstraintInput) -> bool
This method tests for !=
.
sourceimpl Serialize for UpdateConstraintInput
impl Serialize for UpdateConstraintInput
impl StructuralPartialEq for UpdateConstraintInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateConstraintInput
impl Send for UpdateConstraintInput
impl Sync for UpdateConstraintInput
impl Unpin for UpdateConstraintInput
impl UnwindSafe for UpdateConstraintInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more