Class VpcContextQuery.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
VpcContextQuery-
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.Sets the value ofVpcContextQuery.getFilter()lookupRoleArn(String lookupRoleArn) Sets the value ofContextLookupRoleOptions.getLookupRoleArn()lookupRoleExternalId(String lookupRoleExternalId) Sets the value ofContextLookupRoleOptions.getLookupRoleExternalId()Sets the value ofContextLookupRoleOptions.getRegion()returnAsymmetricSubnets(Boolean returnAsymmetricSubnets) Sets the value ofVpcContextQuery.getReturnAsymmetricSubnets()returnVpnGateways(Boolean returnVpnGateways) Sets the value ofVpcContextQuery.getReturnVpnGateways()subnetGroupNameTag(String subnetGroupNameTag) Sets the value ofVpcContextQuery.getSubnetGroupNameTag()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
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
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 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
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
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<VpcContextQuery>- Returns:
- a new instance of
VpcContextQuery - Throws:
NullPointerException- if any required attribute was not provided
-