@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.417Z") @Stability(value=Stable) public class CfnDBProxyEndpoint extends CfnResource implements IInspectable
The AWS::RDS::DBProxyEndpoint resource creates or updates a DB proxy endpoint. You can use custom proxy endpoints to access a proxy through a different VPC than the proxy's default VPC.
For more information about RDS Proxy, see AWS::RDS::DBProxy .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
CfnDBProxyEndpoint cfnDBProxyEndpoint = CfnDBProxyEndpoint.Builder.create(this, "MyCfnDBProxyEndpoint")
.dbProxyEndpointName("dbProxyEndpointName")
.dbProxyName("dbProxyName")
.vpcSubnetIds(List.of("vpcSubnetIds"))
// the properties below are optional
.tags(List.of(TagFormatProperty.builder()
.key("key")
.value("value")
.build()))
.targetRole("targetRole")
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDBProxyEndpoint.Builder
A fluent builder for
CfnDBProxyEndpoint. |
static interface |
CfnDBProxyEndpoint.TagFormatProperty
Metadata assigned to a DB proxy endpoint consisting of a key-value pair.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDBProxyEndpoint(software.constructs.Construct scope,
String id,
CfnDBProxyEndpointProps props)
Create a new `AWS::RDS::DBProxyEndpoint`.
|
protected |
CfnDBProxyEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBProxyEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDbProxyEndpointArn()
The Amazon Resource Name (ARN) representing the DB proxy endpoint.
|
String |
getAttrEndpoint()
The custom endpoint for the RDS DB instance or Aurora DB cluster.
|
IResolvable |
getAttrIsDefault()
A value that indicates whether this endpoint is the default endpoint for the associated DB proxy.
|
String |
getAttrVpcId()
The VPC ID of the DB proxy endpoint.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDbProxyEndpointName()
The name of the DB proxy endpoint to create.
|
String |
getDbProxyName()
The name of the DB proxy associated with the DB proxy endpoint that you create.
|
List<CfnDBProxyEndpoint.TagFormatProperty> |
getTags()
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
|
String |
getTargetRole()
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
List<String> |
getVpcSecurityGroupIds()
The VPC security group IDs for the DB proxy endpoint that you create.
|
List<String> |
getVpcSubnetIds()
The VPC subnet IDs for the DB proxy endpoint that you create.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDbProxyEndpointName(String value)
The name of the DB proxy endpoint to create.
|
void |
setDbProxyName(String value)
The name of the DB proxy associated with the DB proxy endpoint that you create.
|
void |
setTags(List<CfnDBProxyEndpoint.TagFormatProperty> value)
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
|
void |
setTargetRole(String value)
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
|
void |
setVpcSecurityGroupIds(List<String> value)
The VPC security group IDs for the DB proxy endpoint that you create.
|
void |
setVpcSubnetIds(List<String> value)
The VPC subnet IDs for the DB proxy endpoint that you create.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDBProxyEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBProxyEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDBProxyEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDBProxyEndpointProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDbProxyEndpointArn()
@Stability(value=Stable) @NotNull public String getAttrEndpoint()
@Stability(value=Stable) @NotNull public IResolvable getAttrIsDefault()
Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
@Stability(value=Stable) @NotNull public String getAttrVpcId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDbProxyEndpointName()
@Stability(value=Stable)
public void setDbProxyEndpointName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDbProxyName()
@Stability(value=Stable)
public void setDbProxyName(@NotNull
String value)
@Stability(value=Stable) @NotNull public List<String> getVpcSubnetIds()
You can specify a different set of subnet IDs than for the original DB proxy.
@Stability(value=Stable)
public void setVpcSubnetIds(@NotNull
List<String> value)
You can specify a different set of subnet IDs than for the original DB proxy.
@Stability(value=Stable) @Nullable public List<CfnDBProxyEndpoint.TagFormatProperty> getTags()
@Stability(value=Stable)
public void setTags(@Nullable
List<CfnDBProxyEndpoint.TagFormatProperty> value)
@Stability(value=Stable) @Nullable public String getTargetRole()
Valid Values: READ_WRITE | READ_ONLY
@Stability(value=Stable)
public void setTargetRole(@Nullable
String value)
Valid Values: READ_WRITE | READ_ONLY
@Stability(value=Stable) @Nullable public List<String> getVpcSecurityGroupIds()
You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC.
@Stability(value=Stable)
public void setVpcSecurityGroupIds(@Nullable
List<String> value)
You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC.
Copyright © 2022. All rights reserved.