Class AmiContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.AmiContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AmiContextQuery>
- Enclosing interface:
- AmiContextQuery
@Stability(Stable) public static final class AmiContextQuery.Builder extends Object implements software.amazon.jsii.Builder<AmiContextQuery>
A builder forAmiContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
filters
@Stability(Stable) public AmiContextQuery.Builder filters(Map<String,? extends List<String>> filters)
Sets the value ofAmiContextQuery.getFilters()- Parameters:
filters- Filters to DescribeImages call. This parameter is required.- Returns:
this
-
owners
@Stability(Stable) public AmiContextQuery.Builder owners(List<String> owners)
Sets the value ofAmiContextQuery.getOwners()- Parameters:
owners- Owners to DescribeImages call.- Returns:
this
-
account
@Stability(Stable) public AmiContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public AmiContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public AmiContextQuery.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 AmiContextQuery.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 AmiContextQuery.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 AmiContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AmiContextQuery>- Returns:
- a new instance of
AmiContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-