Class CreateConstraintRequest
- All Implemented Interfaces:
- SdkPojo,- ToCopyableBuilder<CreateConstraintRequest.Builder,- CreateConstraintRequest> 
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe language code.builder()final StringThe description of the constraint.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final StringA unique identifier that you provide to ensure idempotency.final StringThe constraint parameters, in JSON format.final StringThe portfolio identifier.final StringThe product identifier.static Class<? extends CreateConstraintRequest.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Stringtype()The type of constraint.Methods inherited from class software.amazon.awssdk.awscore.AwsRequestoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
acceptLanguageThe language code. - 
 jp- Japanese
- 
 zh- Chinese
 - Returns:
- The language code.
         - 
         jp- Japanese
- 
         zh- Chinese
 
- 
         
 
- 
 
- 
portfolioId
- 
productId
- 
parametersThe 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.
 
 
- 
typeThe type of constraint. - 
 LAUNCH
- 
 NOTIFICATION
- 
 RESOURCE_UPDATE
- 
 STACKSET
- 
 TEMPLATE
 - Returns:
- The type of constraint.
         - 
         LAUNCH
- 
         NOTIFICATION
- 
         RESOURCE_UPDATE
- 
         STACKSET
- 
         TEMPLATE
 
- 
         
 
- 
 
- 
descriptionThe description of the constraint. - Returns:
- The description of the constraint.
 
- 
idempotencyTokenA 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. - Returns:
- 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.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<CreateConstraintRequest.Builder,- CreateConstraintRequest> 
- Specified by:
- toBuilderin class- ServiceCatalogRequest
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCodepublic final int hashCode()- Overrides:
- hashCodein class- AwsRequest
 
- 
equals- Overrides:
- equalsin class- AwsRequest
 
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForFieldDescription copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
- getValueForFieldin class- SdkRequest
- Parameters:
- fieldName- The name of the member to be retrieved.
- clazz- The class to cast the returned object to.
- Returns:
- Optional containing the casted return value
 
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-