pub struct CreateConstraintInput {
pub accept_language: Option<String>,
pub description: Option<String>,
pub idempotency_token: String,
pub parameters: String,
pub portfolio_id: String,
pub product_id: String,
pub type_: String,
}
Fields
accept_language: Option<String>
The language code.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
description: Option<String>
The description of the constraint.
idempotency_token: String
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
parameters: 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.
portfolio_id: String
The portfolio identifier.
product_id: String
The product identifier.
type_: String
The type of constraint.
-
LAUNCH
-
NOTIFICATION
-
RESOURCE_UPDATE
-
STACKSET
-
TEMPLATE
Trait Implementations
sourceimpl Clone for CreateConstraintInput
impl Clone for CreateConstraintInput
sourcefn clone(&self) -> CreateConstraintInput
fn clone(&self) -> CreateConstraintInput
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 CreateConstraintInput
impl Debug for CreateConstraintInput
sourceimpl Default for CreateConstraintInput
impl Default for CreateConstraintInput
sourcefn default() -> CreateConstraintInput
fn default() -> CreateConstraintInput
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateConstraintInput> for CreateConstraintInput
impl PartialEq<CreateConstraintInput> for CreateConstraintInput
sourcefn eq(&self, other: &CreateConstraintInput) -> bool
fn eq(&self, other: &CreateConstraintInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateConstraintInput) -> bool
fn ne(&self, other: &CreateConstraintInput) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateConstraintInput
impl Serialize for CreateConstraintInput
impl StructuralPartialEq for CreateConstraintInput
Auto Trait Implementations
impl RefUnwindSafe for CreateConstraintInput
impl Send for CreateConstraintInput
impl Sync for CreateConstraintInput
impl Unpin for CreateConstraintInput
impl UnwindSafe for CreateConstraintInput
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