Class: Aws::EC2::Types::CreateClientVpnEndpointRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass CreateClientVpnEndpointRequest data as a hash:

{
  client_cidr_block: "String", # required
  server_certificate_arn: "String", # required
  authentication_options: [ # required
    {
      type: "certificate-authentication", # accepts certificate-authentication, directory-service-authentication
      active_directory: {
        directory_id: "String",
      },
      mutual_authentication: {
        client_root_certificate_chain_arn: "String",
      },
    },
  ],
  connection_log_options: { # required
    enabled: false,
    cloudwatch_log_group: "String",
    cloudwatch_log_stream: "String",
  },
  dns_servers: ["String"],
  transport_protocol: "tcp", # accepts tcp, udp
  description: "String",
  dry_run: false,
  client_token: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#authentication_optionsArray<Types::ClientVpnAuthenticationRequest>

Information about the authentication method to be used to authenticate clients.



4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#client_cidr_blockString

The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually. The address range cannot be changed after the Client VPN endpoint has been created. The CIDR block should be /22 or greater.

Returns:

  • (String)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#client_tokenString

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

**A suitable default value is auto-generated.** You should normally not need to pass this option.

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html

Returns:

  • (String)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#connection_log_optionsTypes::ConnectionLogOptions

Information about the client connection logging options.

If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:

  • Client connection requests

  • Client connection results (successful and unsuccessful)

  • Reasons for unsuccessful client connection requests

  • Client connection termination time



4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#descriptionString

A brief description of the Client VPN endpoint.

Returns:

  • (String)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#dns_serversArray<String>

Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address of the VPC that is to be associated with Client VPN endpoint is used as the DNS server.

Returns:

  • (Array<String>)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#dry_runBoolean

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`.

Returns:

  • (Boolean)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#server_certificate_arnString

The ARN of the server certificate. For more information, see the [AWS Certificate Manager User Guide](acm/latest/userguide/acm-overview.html) .

Returns:

  • (String)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end

#transport_protocolString

The transport protocol to be used by the VPN session.

Default value: ‘udp`

Returns:

  • (String)


4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
# File 'lib/aws-sdk-ec2/types.rb', line 4150

class CreateClientVpnEndpointRequest < Struct.new(
  :client_cidr_block,
  :server_certificate_arn,
  :authentication_options,
  :connection_log_options,
  :dns_servers,
  :transport_protocol,
  :description,
  :dry_run,
  :client_token)
  include Aws::Structure
end