Class CfnDBProxyEndpoint

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:35.095Z") @Stability(Stable) public class CfnDBProxyEndpoint extends CfnResource implements IInspectable, ITaggableV2
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();
 

See Also:
  • 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBProxyEndpointProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). 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.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • 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.
    • setVpcSubnetIds

      @Stability(Stable) public void setVpcSubnetIds(@NotNull List<String> value)
      The VPC subnet IDs for the DB proxy endpoint that you create.
    • 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.
    • 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.
    • getVpcSecurityGroupIds

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

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