lib/aws-sdk-glue/client.rb in aws-sdk-glue-1.119.0 vs lib/aws-sdk-glue/client.rb in aws-sdk-glue-1.120.0

- old
+ new

@@ -1445,10 +1445,18 @@ # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs #=> Array # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs[0] #=> String # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.database #=> String # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.table #=> String # resp.jobs[0].execution_class #=> String, one of "FLEX", "STANDARD" + # resp.jobs[0].source_control_details.provider #=> String, one of "GITHUB", "AWS_CODE_COMMIT" + # resp.jobs[0].source_control_details.repository #=> String + # resp.jobs[0].source_control_details.owner #=> String + # resp.jobs[0].source_control_details.branch #=> String + # resp.jobs[0].source_control_details.folder #=> String + # resp.jobs[0].source_control_details.last_commit_id #=> String + # resp.jobs[0].source_control_details.auth_strategy #=> String, one of "PERSONAL_ACCESS_TOKEN", "AWS_SECRETS_MANAGER" + # resp.jobs[0].source_control_details.auth_token #=> String # resp.jobs_not_found #=> Array # resp.jobs_not_found[0] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetJobs AWS API Documentation # @@ -2860,10 +2868,14 @@ # # Only jobs with Glue version 3.0 and above and command type `glueetl` # will be allowed to set `ExecutionClass` to `FLEX`. The flexible # execution class is available for Spark jobs. # + # @option params [Types::SourceControlDetails] :source_control_details + # The details for a source control configuration for a job, allowing + # synchronization of job artifacts to or from a remote repository. + # # @return [Types::CreateJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateJobResponse#name #name} => String # # @example Request syntax with placeholder values @@ -3571,10 +3583,20 @@ # table: "EnclosedInStringProperty", # required # }, # }, # }, # execution_class: "FLEX", # accepts FLEX, STANDARD + # source_control_details: { + # provider: "GITHUB", # accepts GITHUB, AWS_CODE_COMMIT + # repository: "Generic512CharString", + # owner: "Generic512CharString", + # branch: "Generic512CharString", + # folder: "Generic512CharString", + # last_commit_id: "Generic512CharString", + # auth_strategy: "PERSONAL_ACCESS_TOKEN", # accepts PERSONAL_ACCESS_TOKEN, AWS_SECRETS_MANAGER + # auth_token: "Generic512CharString", + # }, # }) # # @example Response structure # # resp.name #=> String @@ -7213,10 +7235,18 @@ # resp.job.code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs #=> Array # resp.job.code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs[0] #=> String # resp.job.code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.database #=> String # resp.job.code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.table #=> String # resp.job.execution_class #=> String, one of "FLEX", "STANDARD" + # resp.job.source_control_details.provider #=> String, one of "GITHUB", "AWS_CODE_COMMIT" + # resp.job.source_control_details.repository #=> String + # resp.job.source_control_details.owner #=> String + # resp.job.source_control_details.branch #=> String + # resp.job.source_control_details.folder #=> String + # resp.job.source_control_details.last_commit_id #=> String + # resp.job.source_control_details.auth_strategy #=> String, one of "PERSONAL_ACCESS_TOKEN", "AWS_SECRETS_MANAGER" + # resp.job.source_control_details.auth_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJob AWS API Documentation # # @overload get_job(params = {}) # @param [Hash] params ({}) @@ -7921,10 +7951,18 @@ # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs #=> Array # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.inputs[0] #=> String # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.database #=> String # resp.jobs[0].code_gen_configuration_nodes["NodeId"].postgre_sql_catalog_target.table #=> String # resp.jobs[0].execution_class #=> String, one of "FLEX", "STANDARD" + # resp.jobs[0].source_control_details.provider #=> String, one of "GITHUB", "AWS_CODE_COMMIT" + # resp.jobs[0].source_control_details.repository #=> String + # resp.jobs[0].source_control_details.owner #=> String + # resp.jobs[0].source_control_details.branch #=> String + # resp.jobs[0].source_control_details.folder #=> String + # resp.jobs[0].source_control_details.last_commit_id #=> String + # resp.jobs[0].source_control_details.auth_strategy #=> String, one of "PERSONAL_ACCESS_TOKEN", "AWS_SECRETS_MANAGER" + # resp.jobs[0].source_control_details.auth_token #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJobs AWS API Documentation # # @overload get_jobs(params = {}) @@ -14472,10 +14510,20 @@ # table: "EnclosedInStringProperty", # required # }, # }, # }, # execution_class: "FLEX", # accepts FLEX, STANDARD + # source_control_details: { + # provider: "GITHUB", # accepts GITHUB, AWS_CODE_COMMIT + # repository: "Generic512CharString", + # owner: "Generic512CharString", + # branch: "Generic512CharString", + # folder: "Generic512CharString", + # last_commit_id: "Generic512CharString", + # auth_strategy: "PERSONAL_ACCESS_TOKEN", # accepts PERSONAL_ACCESS_TOKEN, AWS_SECRETS_MANAGER + # auth_token: "Generic512CharString", + # }, # }, # }) # # @example Response structure # @@ -14488,10 +14536,78 @@ def update_job(params = {}, options = {}) req = build_request(:update_job, params) req.send_request(options) end + # Synchronizes a job from the source control repository. This operation + # takes the job artifacts that are located in the remote repository and + # updates the Glue internal stores with these artifacts. + # + # This API supports optional parameters which take in the repository + # information. + # + # @option params [String] :job_name + # The name of the Glue job to be synchronized to or from the remote + # repository. + # + # @option params [String] :provider + # The provider for the remote repository. + # + # @option params [String] :repository_name + # The name of the remote repository that contains the job artifacts. + # + # @option params [String] :repository_owner + # The owner of the remote repository that contains the job artifacts. + # + # @option params [String] :branch_name + # An optional branch in the remote repository. + # + # @option params [String] :folder + # An optional folder in the remote repository. + # + # @option params [String] :commit_id + # A commit ID for a commit in the remote repository. + # + # @option params [String] :auth_strategy + # The type of authentication, which can be an authentication token + # stored in Amazon Web Services Secrets Manager, or a personal access + # token. + # + # @option params [String] :auth_token + # The value of the authorization token. + # + # @return [Types::UpdateJobFromSourceControlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateJobFromSourceControlResponse#job_name #job_name} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_job_from_source_control({ + # job_name: "NameString", + # provider: "GITHUB", # accepts GITHUB, AWS_CODE_COMMIT + # repository_name: "NameString", + # repository_owner: "NameString", + # branch_name: "NameString", + # folder: "NameString", + # commit_id: "CommitIdString", + # auth_strategy: "PERSONAL_ACCESS_TOKEN", # accepts PERSONAL_ACCESS_TOKEN, AWS_SECRETS_MANAGER + # auth_token: "AuthTokenString", + # }) + # + # @example Response structure + # + # resp.job_name #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateJobFromSourceControl AWS API Documentation + # + # @overload update_job_from_source_control(params = {}) + # @param [Hash] params ({}) + def update_job_from_source_control(params = {}, options = {}) + req = build_request(:update_job_from_source_control, params) + req.send_request(options) + end + # Updates an existing machine learning transform. Call this operation to # tune the algorithm parameters to achieve better results. # # After calling this operation, you can call the # `StartMLEvaluationTaskRun` operation to assess how well your new @@ -14823,10 +14939,78 @@ def update_schema(params = {}, options = {}) req = build_request(:update_schema, params) req.send_request(options) end + # Synchronizes a job to the source control repository. This operation + # takes the job artifacts from the Glue internal stores and makes a + # commit to the remote repository that is configured on the job. + # + # This API supports optional parameters which take in the repository + # information. + # + # @option params [String] :job_name + # The name of the Glue job to be synchronized to or from the remote + # repository. + # + # @option params [String] :provider + # The provider for the remote repository. + # + # @option params [String] :repository_name + # The name of the remote repository that contains the job artifacts. + # + # @option params [String] :repository_owner + # The owner of the remote repository that contains the job artifacts. + # + # @option params [String] :branch_name + # An optional branch in the remote repository. + # + # @option params [String] :folder + # An optional folder in the remote repository. + # + # @option params [String] :commit_id + # A commit ID for a commit in the remote repository. + # + # @option params [String] :auth_strategy + # The type of authentication, which can be an authentication token + # stored in Amazon Web Services Secrets Manager, or a personal access + # token. + # + # @option params [String] :auth_token + # The value of the authorization token. + # + # @return [Types::UpdateSourceControlFromJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateSourceControlFromJobResponse#job_name #job_name} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_source_control_from_job({ + # job_name: "NameString", + # provider: "GITHUB", # accepts GITHUB, AWS_CODE_COMMIT + # repository_name: "NameString", + # repository_owner: "NameString", + # branch_name: "NameString", + # folder: "NameString", + # commit_id: "CommitIdString", + # auth_strategy: "PERSONAL_ACCESS_TOKEN", # accepts PERSONAL_ACCESS_TOKEN, AWS_SECRETS_MANAGER + # auth_token: "AuthTokenString", + # }) + # + # @example Response structure + # + # resp.job_name #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateSourceControlFromJob AWS API Documentation + # + # @overload update_source_control_from_job(params = {}) + # @param [Hash] params ({}) + def update_source_control_from_job(params = {}, options = {}) + req = build_request(:update_source_control_from_job, params) + req.send_request(options) + end + # Updates a metadata table in the Data Catalog. # # @option params [String] :catalog_id # The ID of the Data Catalog where the table resides. If none is # provided, the Amazon Web Services account ID is used by default. @@ -15148,10 +15332,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-glue' - context[:gem_version] = '1.119.0' + context[:gem_version] = '1.120.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated