Class: Aws::ServerlessApplicationRepository::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ServerlessApplicationRepository::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-serverlessapplicationrepository/client.rb
Overview
An API client for ServerlessApplicationRepository. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::ServerlessApplicationRepository::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_application(params = {}) ⇒ Types::CreateApplicationResponse
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
-
#create_application_version(params = {}) ⇒ Types::CreateApplicationVersionResponse
Creates an application version.
-
#create_cloud_formation_change_set(params = {}) ⇒ Types::CreateCloudFormationChangeSetResponse
Creates an AWS CloudFormation change set for the given application.
-
#create_cloud_formation_template(params = {}) ⇒ Types::CreateCloudFormationTemplateResponse
Creates an AWS CloudFormation template.
-
#delete_application(params = {}) ⇒ Struct
Deletes the specified application.
-
#get_application(params = {}) ⇒ Types::GetApplicationResponse
Gets the specified application.
-
#get_application_policy(params = {}) ⇒ Types::GetApplicationPolicyResponse
Retrieves the policy for the application.
-
#get_cloud_formation_template(params = {}) ⇒ Types::GetCloudFormationTemplateResponse
Gets the specified AWS CloudFormation template.
-
#list_application_dependencies(params = {}) ⇒ Types::ListApplicationDependenciesResponse
Retrieves the list of applications nested in the containing application.
-
#list_application_versions(params = {}) ⇒ Types::ListApplicationVersionsResponse
Lists versions for the specified application.
-
#list_applications(params = {}) ⇒ Types::ListApplicationsResponse
Lists applications owned by the requester.
-
#put_application_policy(params = {}) ⇒ Types::PutApplicationPolicyResponse
Sets the permission policy for an application.
-
#unshare_application(params = {}) ⇒ Struct
Unshares an application from an AWS Organization.
-
#update_application(params = {}) ⇒ Types::UpdateApplicationResponse
Updates the specified application.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
434 435 436 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 434 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1269 1270 1271 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1269 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1272 1273 1274 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1272 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1242 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::ServerlessApplicationRepository') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-serverlessapplicationrepository' context[:gem_version] = '1.63.0' Seahorse::Client::Request.new(handlers, context) end |
#create_application(params = {}) ⇒ Types::CreateApplicationResponse
Creates an application, optionally including an AWS SAM file to create the first application version in the same call.
554 555 556 557 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 554 def create_application(params = {}, = {}) req = build_request(:create_application, params) req.send_request() end |
#create_application_version(params = {}) ⇒ Types::CreateApplicationVersionResponse
Creates an application version.
628 629 630 631 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 628 def create_application_version(params = {}, = {}) req = build_request(:create_application_version, params) req.send_request() end |
#create_cloud_formation_change_set(params = {}) ⇒ Types::CreateCloudFormationChangeSetResponse
Creates an AWS CloudFormation change set for the given application.
718 719 720 721 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 718 def create_cloud_formation_change_set(params = {}, = {}) req = build_request(:create_cloud_formation_change_set, params) req.send_request() end |
#create_cloud_formation_template(params = {}) ⇒ Types::CreateCloudFormationTemplateResponse
Creates an AWS CloudFormation template.
760 761 762 763 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 760 def create_cloud_formation_template(params = {}, = {}) req = build_request(:create_cloud_formation_template, params) req.send_request() end |
#delete_application(params = {}) ⇒ Struct
Deletes the specified application.
781 782 783 784 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 781 def delete_application(params = {}, = {}) req = build_request(:delete_application, params) req.send_request() end |
#get_application(params = {}) ⇒ Types::GetApplicationResponse
Gets the specified application.
860 861 862 863 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 860 def get_application(params = {}, = {}) req = build_request(:get_application, params) req.send_request() end |
#get_application_policy(params = {}) ⇒ Types::GetApplicationPolicyResponse
Retrieves the policy for the application.
894 895 896 897 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 894 def get_application_policy(params = {}, = {}) req = build_request(:get_application_policy, params) req.send_request() end |
#get_cloud_formation_template(params = {}) ⇒ Types::GetCloudFormationTemplateResponse
Gets the specified AWS CloudFormation template.
936 937 938 939 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 936 def get_cloud_formation_template(params = {}, = {}) req = build_request(:get_cloud_formation_template, params) req.send_request() end |
#list_application_dependencies(params = {}) ⇒ Types::ListApplicationDependenciesResponse
Retrieves the list of applications nested in the containing application.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
979 980 981 982 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 979 def list_application_dependencies(params = {}, = {}) req = build_request(:list_application_dependencies, params) req.send_request() end |
#list_application_versions(params = {}) ⇒ Types::ListApplicationVersionsResponse
Lists versions for the specified application.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1020 1021 1022 1023 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1020 def list_application_versions(params = {}, = {}) req = build_request(:list_application_versions, params) req.send_request() end |
#list_applications(params = {}) ⇒ Types::ListApplicationsResponse
Lists applications owned by the requester.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1063 1064 1065 1066 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1063 def list_applications(params = {}, = {}) req = build_request(:list_applications, params) req.send_request() end |
#put_application_policy(params = {}) ⇒ Types::PutApplicationPolicyResponse
Sets the permission policy for an application. For the list of actions supported for this operation, see [Application Permissions] .
1112 1113 1114 1115 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1112 def put_application_policy(params = {}, = {}) req = build_request(:put_application_policy, params) req.send_request() end |
#unshare_application(params = {}) ⇒ Struct
Unshares an application from an AWS Organization.
This operation can be called only from the organization’s master account.
1139 1140 1141 1142 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1139 def unshare_application(params = {}, = {}) req = build_request(:unshare_application, params) req.send_request() end |
#update_application(params = {}) ⇒ Types::UpdateApplicationResponse
Updates the specified application.
1233 1234 1235 1236 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1233 def update_application(params = {}, = {}) req = build_request(:update_application, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1262 1263 1264 |
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 1262 def waiter_names [] end |