Class CcApiContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.CcApiContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CcApiContextQuery>
- Enclosing interface:
- CcApiContextQuery
@Stability(Stable) public static final class CcApiContextQuery.Builder extends Object implements software.amazon.jsii.Builder<CcApiContextQuery>
A builder forCcApiContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
propertiesToReturn
@Stability(Stable) public CcApiContextQuery.Builder propertiesToReturn(List<String> propertiesToReturn)
Sets the value ofCcApiContextQuery.getPropertiesToReturn()- Parameters:
propertiesToReturn- This is a set of properties returned from CC API that we want to return from ContextQuery. This parameter is required.- Returns:
this
-
typeName
@Stability(Stable) public CcApiContextQuery.Builder typeName(String typeName)
Sets the value ofCcApiContextQuery.getTypeName()- Parameters:
typeName- The Cloudformation resource type. This parameter is required. See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html- Returns:
this
-
exactIdentifier
@Stability(Stable) public CcApiContextQuery.Builder exactIdentifier(String exactIdentifier)
Sets the value ofCcApiContextQuery.getExactIdentifier()- Parameters:
exactIdentifier- exactIdentifier of the resource. Specifying exactIdentifier will return at most one result. Either exactIdentifier or propertyMatch should be specified.- Returns:
this
-
propertyMatch
@Stability(Stable) public CcApiContextQuery.Builder propertyMatch(Map<String,? extends Object> propertyMatch)
Sets the value ofCcApiContextQuery.getPropertyMatch()- Parameters:
propertyMatch- This indicates the property to search for. If both exactIdentifier and propertyMatch are specified, then exactIdentifier is used. Specifying propertyMatch will return 0 or more results. Either exactIdentifier or propertyMatch should be specified.- Returns:
this
-
account
@Stability(Stable) public CcApiContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public CcApiContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public CcApiContextQuery.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofContextLookupRoleOptions.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the lookup role.RoleArnshould not be used. Use the dedicatedlookupRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedlookupRoleExternalIdinstead.
- Returns:
this
-
lookupRoleArn
@Stability(Stable) public CcApiContextQuery.Builder lookupRoleArn(String lookupRoleArn)
Sets the value ofContextLookupRoleOptions.getLookupRoleArn()- Parameters:
lookupRoleArn- The ARN of the role that should be used to look up the missing values.- Returns:
this
-
lookupRoleExternalId
@Stability(Stable) public CcApiContextQuery.Builder lookupRoleExternalId(String lookupRoleExternalId)
Sets the value ofContextLookupRoleOptions.getLookupRoleExternalId()- Parameters:
lookupRoleExternalId- The ExternalId that needs to be supplied while assuming this role.- Returns:
this
-
build
@Stability(Stable) public CcApiContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CcApiContextQuery>- Returns:
- a new instance of
CcApiContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-