Class CfnDBProxyEndpoint

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.029Z") @Stability(Stable) public class CfnDBProxyEndpoint extends CfnResource implements IInspectable
A CloudFormation AWS::RDS::DBProxyEndpoint.

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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnDBProxyEndpoint

      protected CfnDBProxyEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDBProxyEndpoint

      protected CfnDBProxyEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDBProxyEndpoint

      @Stability(Stable) public CfnDBProxyEndpoint(@NotNull Construct scope, @NotNull String id, @NotNull CfnDBProxyEndpointProps props)
      Create a new AWS::RDS::DBProxyEndpoint.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrDbProxyEndpointArn

      @Stability(Stable) @NotNull public String getAttrDbProxyEndpointArn()
      The Amazon Resource Name (ARN) representing the DB proxy endpoint.
    • getAttrEndpoint

      @Stability(Stable) @NotNull public String getAttrEndpoint()
      The custom endpoint for the RDS DB instance or Aurora DB cluster.
    • getAttrIsDefault

      @Stability(Stable) @NotNull public IResolvable getAttrIsDefault()
      A value that indicates whether this endpoint is the default endpoint for the associated DB proxy.

      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.

    • getAttrVpcId

      @Stability(Stable) @NotNull public String getAttrVpcId()
      The VPC ID of the DB proxy endpoint.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDbProxyEndpointName

      @Stability(Stable) @NotNull public String getDbProxyEndpointName()
      The name of the DB proxy endpoint to create.
    • setDbProxyEndpointName

      @Stability(Stable) public void setDbProxyEndpointName(@NotNull String value)
      The name of the DB proxy endpoint to create.
    • getDbProxyName

      @Stability(Stable) @NotNull public String getDbProxyName()
      The name of the DB proxy associated with the DB proxy endpoint that you create.
    • setDbProxyName

      @Stability(Stable) public void setDbProxyName(@NotNull String value)
      The name of the DB proxy associated with the DB proxy endpoint that you create.
    • getVpcSubnetIds

      @Stability(Stable) @NotNull public List<String> getVpcSubnetIds()
      The VPC subnet IDs for the DB proxy endpoint that you create.

      You can specify a different set of subnet IDs than for the original DB proxy.

    • setVpcSubnetIds

      @Stability(Stable) public void setVpcSubnetIds(@NotNull List<String> value)
      The VPC subnet IDs for the DB proxy endpoint that you create.

      You can specify a different set of subnet IDs than for the original DB proxy.

    • getTags

      @Stability(Stable) @Nullable public List<CfnDBProxyEndpoint.TagFormatProperty> getTags()
      An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnDBProxyEndpoint.TagFormatProperty> value)
      An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
    • getTargetRole

      @Stability(Stable) @Nullable public String getTargetRole()
      A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.

      Valid Values: READ_WRITE | READ_ONLY

    • setTargetRole

      @Stability(Stable) public void setTargetRole(@Nullable String value)
      A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.

      Valid Values: READ_WRITE | READ_ONLY

    • getVpcSecurityGroupIds

      @Stability(Stable) @Nullable public List<String> getVpcSecurityGroupIds()
      The VPC security group IDs for the DB proxy endpoint that you create.

      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.

    • setVpcSecurityGroupIds

      @Stability(Stable) public void setVpcSecurityGroupIds(@Nullable List<String> value)
      The VPC security group IDs for the DB proxy endpoint that you create.

      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.