Class: Aws::CodeStarconnections::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CodeStarconnections::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb
Overview
An API client for CodeStarconnections. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::CodeStarconnections::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
-
#create_connection(params = {}) ⇒ Types::CreateConnectionOutput
Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories.
-
#create_host(params = {}) ⇒ Types::CreateHostOutput
Creates a resource that represents the infrastructure where a third-party provider is installed.
-
#delete_connection(params = {}) ⇒ Struct
The connection to be deleted.
-
#delete_host(params = {}) ⇒ Struct
The host to be deleted.
-
#get_connection(params = {}) ⇒ Types::GetConnectionOutput
Returns the connection ARN and details such as status, owner, and provider type.
-
#get_host(params = {}) ⇒ Types::GetHostOutput
Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
-
#list_connections(params = {}) ⇒ Types::ListConnectionsOutput
Lists the connections associated with your account.
-
#list_hosts(params = {}) ⇒ Types::ListHostsOutput
Lists the hosts associated with your account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Gets the set of key-value pairs (metadata) that are used to manage the resource.
-
#tag_resource(params = {}) ⇒ Struct
Adds to or modifies the tags of the given resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from an AWS resource.
-
#update_host(params = {}) ⇒ Struct
Updates a specified host with the provided configurations.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::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.
358 359 360 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 358 def initialize(*args) super end |
Instance Method Details
#create_connection(params = {}) ⇒ Types::CreateConnectionOutput
Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.
414 415 416 417 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 414 def create_connection(params = {}, = {}) req = build_request(:create_connection, params) req.send_request() end |
#create_host(params = {}) ⇒ Types::CreateHostOutput
Creates a resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.
PENDING
status by
default. You can make its status AVAILABLE
by setting up the host
in the console.
488 489 490 491 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 488 def create_host(params = {}, = {}) req = build_request(:create_host, params) req.send_request() end |
#delete_connection(params = {}) ⇒ Struct
The connection to be deleted.
514 515 516 517 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 514 def delete_connection(params = {}, = {}) req = build_request(:delete_connection, params) req.send_request() end |
#delete_host(params = {}) ⇒ Struct
The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.
542 543 544 545 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 542 def delete_host(params = {}, = {}) req = build_request(:delete_host, params) req.send_request() end |
#get_connection(params = {}) ⇒ Types::GetConnectionOutput
Returns the connection ARN and details such as status, owner, and provider type.
576 577 578 579 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 576 def get_connection(params = {}, = {}) req = build_request(:get_connection, params) req.send_request() end |
#get_host(params = {}) ⇒ Types::GetHostOutput
Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
618 619 620 621 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 618 def get_host(params = {}, = {}) req = build_request(:get_host, params) req.send_request() end |
#list_connections(params = {}) ⇒ Types::ListConnectionsOutput
Lists the connections associated with your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
673 674 675 676 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 673 def list_connections(params = {}, = {}) req = build_request(:list_connections, params) req.send_request() end |
#list_hosts(params = {}) ⇒ Types::ListHostsOutput
Lists the hosts associated with your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
724 725 726 727 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 724 def list_hosts(params = {}, = {}) req = build_request(:list_hosts, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Gets the set of key-value pairs (metadata) that are used to manage the resource.
756 757 758 759 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 756 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
789 790 791 792 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 789 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from an AWS resource.
815 816 817 818 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 815 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_host(params = {}) ⇒ Struct
Updates a specified host with the provided configurations.
852 853 854 855 |
# File 'gems/aws-sdk-codestarconnections/lib/aws-sdk-codestarconnections/client.rb', line 852 def update_host(params = {}, = {}) req = build_request(:update_host, params) req.send_request() end |