Class CcApiContextQuery.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
CcApiContextQuery-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofContextLookupRoleOptions.getAccount()assumeRoleAdditionalOptions(Map<String, ? extends Object> assumeRoleAdditionalOptions) Sets the value ofContextLookupRoleOptions.getAssumeRoleAdditionalOptions()build()Builds the configured instance.exactIdentifier(String exactIdentifier) Sets the value ofCcApiContextQuery.getExactIdentifier()lookupRoleArn(String lookupRoleArn) Sets the value ofContextLookupRoleOptions.getLookupRoleArn()lookupRoleExternalId(String lookupRoleExternalId) Sets the value ofContextLookupRoleOptions.getLookupRoleExternalId()propertiesToReturn(List<String> propertiesToReturn) Sets the value ofCcApiContextQuery.getPropertiesToReturn()propertyMatch(Map<String, ? extends Object> propertyMatch) Sets the value ofCcApiContextQuery.getPropertyMatch()Sets the value ofContextLookupRoleOptions.getRegion()Sets the value ofCcApiContextQuery.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
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
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
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
-