amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.CreateVpcEndpoint

Description

Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink Guide.

Synopsis

Creating a Request

data CreateVpcEndpoint Source #

Contains the parameters for CreateVpcEndpoint.

See: newCreateVpcEndpoint smart constructor.

Constructors

CreateVpcEndpoint' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

  • dnsOptions :: Maybe DnsOptionsSpecification

    The DNS options for the endpoint.

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • ipAddressType :: Maybe IpAddressType

    The IP address type for the endpoint.

  • policyDocument :: Maybe Text

    (Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

  • privateDnsEnabled :: Maybe Bool

    (Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

    To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

    Default: true

  • routeTableIds :: Maybe [Text]

    (Gateway endpoint) One or more route table IDs.

  • securityGroupIds :: Maybe [Text]

    (Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.

  • subnetIds :: Maybe [Text]

    (Interface and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint network interface. For a Gateway Load Balancer endpoint, you can specify one subnet only.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to associate with the endpoint.

  • vpcEndpointType :: Maybe VpcEndpointType

    The type of endpoint.

    Default: Gateway

  • vpcId :: Text

    The ID of the VPC in which the endpoint will be used.

  • serviceName :: Text

    The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.

Instances

Instances details
ToHeaders CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

ToPath CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

ToQuery CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

AWSRequest CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Associated Types

type AWSResponse CreateVpcEndpoint #

Generic CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Associated Types

type Rep CreateVpcEndpoint :: Type -> Type #

Read CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Show CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

NFData CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Methods

rnf :: CreateVpcEndpoint -> () #

Eq CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Hashable CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

type AWSResponse CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

type Rep CreateVpcEndpoint Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

type Rep CreateVpcEndpoint = D1 ('MetaData "CreateVpcEndpoint" "Amazonka.EC2.CreateVpcEndpoint" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateVpcEndpoint'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dnsOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DnsOptionsSpecification)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "ipAddressType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpAddressType)) :*: (S1 ('MetaSel ('Just "policyDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "privateDnsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "routeTableIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "securityGroupIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification])) :*: S1 ('MetaSel ('Just "vpcEndpointType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcEndpointType))) :*: (S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateVpcEndpoint Source #

Create a value of CreateVpcEndpoint with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateVpcEndpoint, createVpcEndpoint_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

CreateVpcEndpoint, createVpcEndpoint_dnsOptions - The DNS options for the endpoint.

$sel:dryRun:CreateVpcEndpoint', createVpcEndpoint_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

CreateVpcEndpoint, createVpcEndpoint_ipAddressType - The IP address type for the endpoint.

CreateVpcEndpoint, createVpcEndpoint_policyDocument - (Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

CreateVpcEndpoint, createVpcEndpoint_privateDnsEnabled - (Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

Default: true

CreateVpcEndpoint, createVpcEndpoint_routeTableIds - (Gateway endpoint) One or more route table IDs.

CreateVpcEndpoint, createVpcEndpoint_securityGroupIds - (Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.

CreateVpcEndpoint, createVpcEndpoint_subnetIds - (Interface and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint network interface. For a Gateway Load Balancer endpoint, you can specify one subnet only.

CreateVpcEndpoint, createVpcEndpoint_tagSpecifications - The tags to associate with the endpoint.

CreateVpcEndpoint, createVpcEndpoint_vpcEndpointType - The type of endpoint.

Default: Gateway

CreateVpcEndpoint, createVpcEndpoint_vpcId - The ID of the VPC in which the endpoint will be used.

CreateVpcEndpoint, createVpcEndpoint_serviceName - The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.

Request Lenses

createVpcEndpoint_clientToken :: Lens' CreateVpcEndpoint (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

createVpcEndpoint_dryRun :: Lens' CreateVpcEndpoint (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

createVpcEndpoint_policyDocument :: Lens' CreateVpcEndpoint (Maybe Text) Source #

(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

createVpcEndpoint_privateDnsEnabled :: Lens' CreateVpcEndpoint (Maybe Bool) Source #

(Interface endpoint) Indicates whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

Default: true

createVpcEndpoint_routeTableIds :: Lens' CreateVpcEndpoint (Maybe [Text]) Source #

(Gateway endpoint) One or more route table IDs.

createVpcEndpoint_securityGroupIds :: Lens' CreateVpcEndpoint (Maybe [Text]) Source #

(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.

createVpcEndpoint_subnetIds :: Lens' CreateVpcEndpoint (Maybe [Text]) Source #

(Interface and Gateway Load Balancer endpoints) The ID of one or more subnets in which to create an endpoint network interface. For a Gateway Load Balancer endpoint, you can specify one subnet only.

createVpcEndpoint_vpcId :: Lens' CreateVpcEndpoint Text Source #

The ID of the VPC in which the endpoint will be used.

createVpcEndpoint_serviceName :: Lens' CreateVpcEndpoint Text Source #

The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.

Destructuring the Response

data CreateVpcEndpointResponse Source #

Contains the output of CreateVpcEndpoint.

See: newCreateVpcEndpointResponse smart constructor.

Constructors

CreateVpcEndpointResponse' 

Fields

Instances

Instances details
Generic CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Associated Types

type Rep CreateVpcEndpointResponse :: Type -> Type #

Read CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Show CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

NFData CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

Eq CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

type Rep CreateVpcEndpointResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateVpcEndpoint

type Rep CreateVpcEndpointResponse = D1 ('MetaData "CreateVpcEndpointResponse" "Amazonka.EC2.CreateVpcEndpoint" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateVpcEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "vpcEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcEndpoint)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateVpcEndpointResponse Source #

Create a value of CreateVpcEndpointResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateVpcEndpoint, createVpcEndpointResponse_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

CreateVpcEndpointResponse, createVpcEndpointResponse_vpcEndpoint - Information about the endpoint.

$sel:httpStatus:CreateVpcEndpointResponse', createVpcEndpointResponse_httpStatus - The response's http status code.

Response Lenses

createVpcEndpointResponse_clientToken :: Lens' CreateVpcEndpointResponse (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.