Class UpdateConstraintRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.servicecatalog.model.ServiceCatalogRequest
-
- software.amazon.awssdk.services.servicecatalog.model.UpdateConstraintRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateConstraintRequest.Builder,UpdateConstraintRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateConstraintRequest extends ServiceCatalogRequest implements ToCopyableBuilder<UpdateConstraintRequest.Builder,UpdateConstraintRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateConstraintRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringacceptLanguage()The language code.static UpdateConstraintRequest.Builderbuilder()Stringdescription()The updated description of the constraint.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The identifier of the constraint.Stringparameters()The constraint parameters, in JSON format.List<SdkField<?>>sdkFields()static Class<? extends UpdateConstraintRequest.Builder>serializableBuilderClass()UpdateConstraintRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
acceptLanguage
public final String acceptLanguage()
The language code.
-
jp- Japanese -
zh- Chinese
- Returns:
- The language code.
-
jp- Japanese -
zh- Chinese
-
-
-
id
public final String id()
The identifier of the constraint.
- Returns:
- The identifier of the constraint.
-
description
public final String description()
The updated description of the constraint.
- Returns:
- The updated description of the constraint.
-
parameters
public final String parameters()
The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:
- LAUNCH
-
You are required to specify either the
RoleArnor theLocalRoleNamebut can't use both.Specify the
RoleArnproperty as follows:{"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}Specify the
LocalRoleNameproperty as follows:{"LocalRoleName": "SCBasicLaunchRole"}If you specify the
LocalRoleNameproperty, 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
LAUNCHand aSTACKSETconstraint.You also cannot have more than one
LAUNCHconstraint on a product and portfolio. - NOTIFICATION
-
Specify the
NotificationArnsproperty as follows:{"NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"]} - RESOURCE_UPDATE
-
Specify the
TagUpdatesOnProvisionedProductproperty as follows:{"Version":"2.0","Properties":{"TagUpdateOnProvisionedProduct":"String"}}The
TagUpdatesOnProvisionedProductproperty accepts a string value ofALLOWEDorNOT_ALLOWED. - STACKSET
-
Specify the
Parametersproperty as follows:{"Version": "String", "Properties": {"AccountList": [ "String" ], "RegionList": [ "String" ], "AdminRole": "String", "ExecutionRole": "String"}}You cannot have both a
LAUNCHand aSTACKSETconstraint.You also cannot have more than one
STACKSETconstraint on a product and portfolio.Products with a
STACKSETconstraint will launch an CloudFormation stack set. - TEMPLATE
-
Specify the
Rulesproperty. For more information, see Template Constraint Rules.
- Returns:
- The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:
- LAUNCH
-
You are required to specify either the
RoleArnor theLocalRoleNamebut can't use both.Specify the
RoleArnproperty as follows:{"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}Specify the
LocalRoleNameproperty as follows:{"LocalRoleName": "SCBasicLaunchRole"}If you specify the
LocalRoleNameproperty, 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
LAUNCHand aSTACKSETconstraint.You also cannot have more than one
LAUNCHconstraint on a product and portfolio. - NOTIFICATION
-
Specify the
NotificationArnsproperty as follows:{"NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"]} - RESOURCE_UPDATE
-
Specify the
TagUpdatesOnProvisionedProductproperty as follows:{"Version":"2.0","Properties":{"TagUpdateOnProvisionedProduct":"String"}}The
TagUpdatesOnProvisionedProductproperty accepts a string value ofALLOWEDorNOT_ALLOWED. - STACKSET
-
Specify the
Parametersproperty as follows:{"Version": "String", "Properties": {"AccountList": [ "String" ], "RegionList": [ "String" ], "AdminRole": "String", "ExecutionRole": "String"}}You cannot have both a
LAUNCHand aSTACKSETconstraint.You also cannot have more than one
STACKSETconstraint on a product and portfolio.Products with a
STACKSETconstraint will launch an CloudFormation stack set. - TEMPLATE
-
Specify the
Rulesproperty. For more information, see Template Constraint Rules.
-
toBuilder
public UpdateConstraintRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateConstraintRequest.Builder,UpdateConstraintRequest>- Specified by:
toBuilderin classServiceCatalogRequest
-
builder
public static UpdateConstraintRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateConstraintRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-