Class KeyContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.KeyContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeyContextQuery>
- Enclosing interface:
- KeyContextQuery
@Stability(Stable) public static final class KeyContextQuery.Builder extends Object implements software.amazon.jsii.Builder<KeyContextQuery>
A builder forKeyContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyContextQuery.Builderaccount(String account)Sets the value ofContextLookupRoleOptions.getAccount()KeyContextQuery.BuilderaliasName(String aliasName)Sets the value ofKeyContextQuery.getAliasName()KeyContextQuery.BuilderassumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)Sets the value ofContextLookupRoleOptions.getAssumeRoleAdditionalOptions()KeyContextQuerybuild()Builds the configured instance.KeyContextQuery.BuilderlookupRoleArn(String lookupRoleArn)Sets the value ofContextLookupRoleOptions.getLookupRoleArn()KeyContextQuery.BuilderlookupRoleExternalId(String lookupRoleExternalId)Sets the value ofContextLookupRoleOptions.getLookupRoleExternalId()KeyContextQuery.Builderregion(String region)Sets the value ofContextLookupRoleOptions.getRegion()
-
-
-
Method Detail
-
aliasName
@Stability(Stable) public KeyContextQuery.Builder aliasName(String aliasName)
Sets the value ofKeyContextQuery.getAliasName()- Parameters:
aliasName- Alias name used to search the Key. This parameter is required.- Returns:
this
-
account
@Stability(Stable) public KeyContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public KeyContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public KeyContextQuery.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 KeyContextQuery.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 KeyContextQuery.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 KeyContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KeyContextQuery>- Returns:
- a new instance of
KeyContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-