Class VpcContextQuery.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.VpcContextQuery.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpcContextQuery>
- Enclosing interface:
- VpcContextQuery
@Stability(Stable) public static final class VpcContextQuery.Builder extends Object implements software.amazon.jsii.Builder<VpcContextQuery>
A builder forVpcContextQuery
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
filter
@Stability(Stable) public VpcContextQuery.Builder filter(Map<String,String> filter)
Sets the value ofVpcContextQuery.getFilter()- Parameters:
filter- Filters to apply to the VPC. This parameter is required. Filter parameters are the same as passed to DescribeVpcs.- Returns:
this
-
returnAsymmetricSubnets
@Stability(Stable) public VpcContextQuery.Builder returnAsymmetricSubnets(Boolean returnAsymmetricSubnets)
Sets the value ofVpcContextQuery.getReturnAsymmetricSubnets()- Parameters:
returnAsymmetricSubnets- Whether to populate the subnetGroups field of theVpcContextResponse, which contains potentially asymmetric subnet groups.- Returns:
this
-
returnVpnGateways
@Stability(Stable) public VpcContextQuery.Builder returnVpnGateways(Boolean returnVpnGateways)
Sets the value ofVpcContextQuery.getReturnVpnGateways()- Parameters:
returnVpnGateways- Whether to populate thevpnGatewayIdfield of theVpcContextResponse, which contains the VPN Gateway ID, if one exists. You can explicitly disable this in order to avoid the lookup if you know the VPC does not have a VPN Gatway attached.- Returns:
this
-
subnetGroupNameTag
@Stability(Stable) public VpcContextQuery.Builder subnetGroupNameTag(String subnetGroupNameTag)
Sets the value ofVpcContextQuery.getSubnetGroupNameTag()- Parameters:
subnetGroupNameTag- Optional tag for subnet group name. If not provided, we'll look at the aws-cdk:subnet-name tag. If the subnet does not have the specified tag, we'll use its type as the name.- Returns:
this
-
account
@Stability(Stable) public VpcContextQuery.Builder account(String account)
Sets the value ofContextLookupRoleOptions.getAccount()- Parameters:
account- Query account. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public VpcContextQuery.Builder region(String region)
Sets the value ofContextLookupRoleOptions.getRegion()- Parameters:
region- Query region. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public VpcContextQuery.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 VpcContextQuery.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 VpcContextQuery.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 VpcContextQuery build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VpcContextQuery>- Returns:
- a new instance of
VpcContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-
-