Class: Aws::Evs::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Evs::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb
Overview
An API client for Evs. To construct a client, you need to configure a :region and :credentials.
client = Aws::Evs::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_eip_to_vlan(params = {}) ⇒ Types::AssociateEipToVlanResponse
Associates an Elastic IP address with a public HCX VLAN.
-
#create_environment(params = {}) ⇒ Types::CreateEnvironmentResponse
Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.
-
#create_environment_host(params = {}) ⇒ Types::CreateEnvironmentHostResponse
Creates an ESX host and adds it to an Amazon EVS environment.
-
#delete_environment(params = {}) ⇒ Types::DeleteEnvironmentResponse
Deletes an Amazon EVS environment.
-
#delete_environment_host(params = {}) ⇒ Types::DeleteEnvironmentHostResponse
Deletes a host from an Amazon EVS environment.
-
#disassociate_eip_from_vlan(params = {}) ⇒ Types::DisassociateEipFromVlanResponse
Disassociates an Elastic IP address from a public HCX VLAN.
-
#get_environment(params = {}) ⇒ Types::GetEnvironmentResponse
Returns a description of the specified environment.
-
#get_versions(params = {}) ⇒ Types::GetVersionsResponse
Returns information about VCF versions, ESX versions and EC2 instance types provided by Amazon EVS.
-
#list_environment_hosts(params = {}) ⇒ Types::ListEnvironmentHostsResponse
List the hosts within an environment.
-
#list_environment_vlans(params = {}) ⇒ Types::ListEnvironmentVlansResponse
Lists environment VLANs that are associated with the specified environment.
-
#list_environments(params = {}) ⇒ Types::ListEnvironmentsResponse
Lists the Amazon EVS environments in your Amazon Web Services account in the specified Amazon Web Services Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for an Amazon EVS resource.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to an Amazon EVS resource with the specified
resourceArn. -
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from an Amazon EVS resource.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
480 481 482 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 480 def initialize(*args) super end |
Instance Method Details
#associate_eip_to_vlan(params = {}) ⇒ Types::AssociateEipToVlanResponse
Associates an Elastic IP address with a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.
550 551 552 553 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 550 def associate_eip_to_vlan(params = {}, = {}) req = build_request(:associate_eip_to_vlan, params) req.send_request() end |
#create_environment(params = {}) ⇒ Types::CreateEnvironmentResponse
Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.
During environment creation, Amazon EVS performs validations on DNS settings, provisions VLAN subnets and hosts, and deploys the supplied version of VCF.
It can take several hours to create an environment. After the deployment completes, you can configure VCF in the vSphere user interface according to your needs.
When creating a new environment, the default ESX version for the
selected VCF version will be used, you cannot choose a specific ESX
version in CreateEnvironment action. When a host has been added with
a specific ESX version, it can only be upgraded using vCenter
Lifecycle Manager.
dedicatedHostId and placementGroupId parameters
together in the same CreateEnvironment action. This results in a
ValidationException response.
850 851 852 853 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 850 def create_environment(params = {}, = {}) req = build_request(:create_environment, params) req.send_request() end |
#create_environment_host(params = {}) ⇒ Types::CreateEnvironmentHostResponse
Creates an ESX host and adds it to an Amazon EVS environment. Amazon EVS supports 4-16 hosts per environment.
This action can only be used after the Amazon EVS environment is deployed.
You can use the dedicatedHostId parameter to specify an Amazon EC2
Dedicated Host for ESX host creation.
You can use the placementGroupId parameter to specify a cluster or
partition placement group to launch EC2 instances into.
CreateEnvironmentHost action, Amazon EVS automatically uses the
default ESX version associated with your environment's VCF version.
To find the default ESX version for a particular VCF version, use the
GetVersions action.
dedicatedHostId and placementGroupId parameters
together in the same CreateEnvironmentHost action. This results in a
ValidationException response.
953 954 955 956 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 953 def create_environment_host(params = {}, = {}) req = build_request(:create_environment_host, params) req.send_request() end |
#delete_environment(params = {}) ⇒ Types::DeleteEnvironmentResponse
Deletes an Amazon EVS environment.
Amazon EVS environments will only be enabled for deletion once the
hosts are deleted. You can delete hosts using the
DeleteEnvironmentHost action.
Environment deletion also deletes the associated Amazon EVS VLAN subnets and Amazon Web Services Secrets Manager secrets that Amazon EVS created. Amazon Web Services resources that you create are not deleted. These resources may continue to incur costs.
1041 1042 1043 1044 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1041 def delete_environment(params = {}, = {}) req = build_request(:delete_environment, params) req.send_request() end |
#delete_environment_host(params = {}) ⇒ Types::DeleteEnvironmentHostResponse
Deletes a host from an Amazon EVS environment.
1116 1117 1118 1119 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1116 def delete_environment_host(params = {}, = {}) req = build_request(:delete_environment_host, params) req.send_request() end |
#disassociate_eip_from_vlan(params = {}) ⇒ Types::DisassociateEipFromVlanResponse
Disassociates an Elastic IP address from a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.
1185 1186 1187 1188 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1185 def disassociate_eip_from_vlan(params = {}, = {}) req = build_request(:disassociate_eip_from_vlan, params) req.send_request() end |
#get_environment(params = {}) ⇒ Types::GetEnvironmentResponse
Returns a description of the specified environment.
1248 1249 1250 1251 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1248 def get_environment(params = {}, = {}) req = build_request(:get_environment, params) req.send_request() end |
#get_versions(params = {}) ⇒ Types::GetVersionsResponse
Returns information about VCF versions, ESX versions and EC2 instance types provided by Amazon EVS. For each VCF version, the response also includes the default ESX version and provided EC2 instance types.
1279 1280 1281 1282 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1279 def get_versions(params = {}, = {}) req = build_request(:get_versions, params) req.send_request() end |
#list_environment_hosts(params = {}) ⇒ Types::ListEnvironmentHostsResponse
List the hosts within an environment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1338 1339 1340 1341 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1338 def list_environment_hosts(params = {}, = {}) req = build_request(:list_environment_hosts, params) req.send_request() end |
#list_environment_vlans(params = {}) ⇒ Types::ListEnvironmentVlansResponse
Lists environment VLANs that are associated with the specified environment.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1400 1401 1402 1403 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1400 def list_environment_vlans(params = {}, = {}) req = build_request(:list_environment_vlans, params) req.send_request() end |
#list_environments(params = {}) ⇒ Types::ListEnvironmentsResponse
Lists the Amazon EVS environments in your Amazon Web Services account in the specified Amazon Web Services Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1456 1457 1458 1459 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1456 def list_environments(params = {}, = {}) req = build_request(:list_environments, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for an Amazon EVS resource.
1486 1487 1488 1489 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1486 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to an Amazon EVS resource with the
specified resourceArn. If existing tags on a resource are not
specified in the request parameters, they aren't changed. When a
resource is deleted, the tags associated with that resource are also
deleted. Tags that you create for Amazon EVS resources don't
propagate to any other resources associated with the environment. For
example, if you tag an environment with this operation, that tag
doesn't automatically propagate to the VLAN subnets and hosts
associated with the environment.
1524 1525 1526 1527 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1524 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from an Amazon EVS resource.
1550 1551 1552 1553 |
# File 'gems/aws-sdk-evs/lib/aws-sdk-evs/client.rb', line 1550 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |