aws-sdk-rekognition 1.69.0 → 1.71.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c18f35079e645c8c14ba246ba76f0d1eb862b205192d586c1a0c4bc306376a4f
4
- data.tar.gz: 6e3bc7e3aeabde379f20eeeee5804c9fd3bcd5c58048e359e10a8fb3321a9622
3
+ metadata.gz: 905750bbefaa5fa1c3911030a8c24e9e373f87cf5a4f38f0538f84df5c63e3f5
4
+ data.tar.gz: 3ab5a14ff6b83ce0ba0e653531d5bfa784db068aae320298d5417e6ecc6bf8c6
5
5
  SHA512:
6
- metadata.gz: 26aa60c7d490065be88643d7870384ffe4650545385d9f951fc5dce97bc30d67c2db7b3e8f2a356bf9aa0896e5dfd1755787edcddcbdff8129e6063a63782764
7
- data.tar.gz: 9cce0427913d4f6db324ba298a4cefea78f5c2e3e4a4457b5984db659a77d62ef2661a7ac6898c505fb7f32cb1f4072f67906a021fa833c598be261baf97b906
6
+ metadata.gz: 5596e290509cace40198994218271e9f9de737d4c0f1fc1d8741f4c07d2faf3e094630e383919617706b129a79463e96cf1da121147fd134c8f8c8cccfcf71f0
7
+ data.tar.gz: feb2605c0dc3ca1c0070a9e55f01fe147266b7a3b932fc7344c95e944d3f6846eb13539533c9f2128021bab665a6fa5c3ad0b56f8c42a36c89daa7cc13e90200
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.71.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.70.0 (2022-08-16)
10
+ ------------------
11
+
12
+ * Feature - This release adds APIs which support copying an Amazon Rekognition Custom Labels model and managing project policies across AWS account.
13
+
4
14
  1.69.0 (2022-07-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.69.0
1
+ 1.71.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:rekognition)
@@ -79,8 +79,9 @@ module Aws::Rekognition
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::Rekognition::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::Rekognition
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::Rekognition
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::Rekognition::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Rekognition::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -606,6 +623,135 @@ module Aws::Rekognition
606
623
  req.send_request(options)
607
624
  end
608
625
 
626
+ # Copies a version of an Amazon Rekognition Custom Labels model from a
627
+ # source project to a destination project. The source and destination
628
+ # projects can be in different AWS accounts but must be in the same AWS
629
+ # Region. You can't copy a model to another AWS service.
630
+ #
631
+ # To copy a model version to a different AWS account, you need to create
632
+ # a resource-based policy known as a *project policy*. You attach the
633
+ # project policy to the source project by calling PutProjectPolicy. The
634
+ # project policy gives permission to copy the model version from a
635
+ # trusting AWS account to a trusted account.
636
+ #
637
+ # For more information creating and attaching a project policy, see
638
+ # Attaching a project policy (SDK) in the *Amazon Rekognition Custom
639
+ # Labels Developer Guide*.
640
+ #
641
+ # If you are copying a model version to a project in the same AWS
642
+ # account, you don't need to create a project policy.
643
+ #
644
+ # <note markdown="1"> To copy a model, the destination project, source project, and source
645
+ # model version must already exist.
646
+ #
647
+ # </note>
648
+ #
649
+ # Copying a model version takes a while to complete. To get the current
650
+ # status, call DescribeProjectVersions and check the value of `Status`
651
+ # in the ProjectVersionDescription object. The copy operation has
652
+ # finished when the value of `Status` is `COPYING_COMPLETED`.
653
+ #
654
+ # @option params [required, String] :source_project_arn
655
+ # The ARN of the source project in the trusting AWS account.
656
+ #
657
+ # @option params [required, String] :source_project_version_arn
658
+ # The ARN of the model version in the source project that you want to
659
+ # copy to a destination project.
660
+ #
661
+ # @option params [required, String] :destination_project_arn
662
+ # The ARN of the project in the trusted AWS account that you want to
663
+ # copy the model version to.
664
+ #
665
+ # @option params [required, String] :version_name
666
+ # A name for the version of the model that's copied to the destination
667
+ # project.
668
+ #
669
+ # @option params [required, Types::OutputConfig] :output_config
670
+ # The S3 bucket and folder location where the training output for the
671
+ # source model version is placed.
672
+ #
673
+ # @option params [Hash<String,String>] :tags
674
+ # The key-value tags to assign to the model version.
675
+ #
676
+ # @option params [String] :kms_key_id
677
+ # The identifier for your AWS Key Management Service key (AWS KMS key).
678
+ # You can supply the Amazon Resource Name (ARN) of your KMS key, the ID
679
+ # of your KMS key, an alias for your KMS key, or an alias ARN. The key
680
+ # is used to encrypt training results and manifest files written to the
681
+ # output Amazon S3 bucket (`OutputConfig`).
682
+ #
683
+ # If you choose to use your own KMS key, you need the following
684
+ # permissions on the KMS key.
685
+ #
686
+ # * kms:CreateGrant
687
+ #
688
+ # * kms:DescribeKey
689
+ #
690
+ # * kms:GenerateDataKey
691
+ #
692
+ # * kms:Decrypt
693
+ #
694
+ # If you don't specify a value for `KmsKeyId`, images copied into the
695
+ # service are encrypted using a key that AWS owns and manages.
696
+ #
697
+ # @return [Types::CopyProjectVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
698
+ #
699
+ # * {Types::CopyProjectVersionResponse#project_version_arn #project_version_arn} => String
700
+ #
701
+ #
702
+ # @example Example: CopyProjectVersion
703
+ #
704
+ # # This operation copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination
705
+ # # project.
706
+ #
707
+ # resp = client.copy_project_version({
708
+ # destination_project_arn: "arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/1656705098765",
709
+ # kms_key_id: "arn:1234abcd-12ab-34cd-56ef-1234567890ab",
710
+ # output_config: {
711
+ # s3_bucket: "bucket-name",
712
+ # s3_key_prefix: "path_to_folder",
713
+ # },
714
+ # source_project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/16565123456",
715
+ # source_project_version_arn: "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/version/model_1/1656611123456",
716
+ # tags: {
717
+ # "key1" => "val1",
718
+ # },
719
+ # version_name: "DestinationVersionName_cross_account",
720
+ # })
721
+ #
722
+ # resp.to_h outputs the following:
723
+ # {
724
+ # project_version_arn: "arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/version/DestinationVersionName_cross_account/16567050987651",
725
+ # }
726
+ #
727
+ # @example Request syntax with placeholder values
728
+ #
729
+ # resp = client.copy_project_version({
730
+ # source_project_arn: "ProjectArn", # required
731
+ # source_project_version_arn: "ProjectVersionArn", # required
732
+ # destination_project_arn: "ProjectArn", # required
733
+ # version_name: "VersionName", # required
734
+ # output_config: { # required
735
+ # s3_bucket: "S3Bucket",
736
+ # s3_key_prefix: "S3KeyPrefix",
737
+ # },
738
+ # tags: {
739
+ # "TagKey" => "TagValue",
740
+ # },
741
+ # kms_key_id: "KmsKeyId",
742
+ # })
743
+ #
744
+ # @example Response structure
745
+ #
746
+ # resp.project_version_arn #=> String
747
+ #
748
+ # @overload copy_project_version(params = {})
749
+ # @param [Hash] params ({})
750
+ def copy_project_version(params = {}, options = {})
751
+ req = build_request(:copy_project_version, params)
752
+ req.send_request(options)
753
+ end
754
+
609
755
  # Creates a collection in an AWS Region. You can add faces to the
610
756
  # collection using the IndexFaces operation.
611
757
  #
@@ -1255,7 +1401,9 @@ module Aws::Rekognition
1255
1401
  #
1256
1402
  # `DeleteProject` is an asynchronous operation. To check if the project
1257
1403
  # is deleted, call DescribeProjects. The project is deleted when the
1258
- # project no longer appears in the response.
1404
+ # project no longer appears in the response. Be aware that deleting a
1405
+ # given project will also delete any `ProjectPolicies` associated with
1406
+ # that project.
1259
1407
  #
1260
1408
  # This operation requires permissions to perform the
1261
1409
  # `rekognition:DeleteProject` action.
@@ -1284,6 +1432,54 @@ module Aws::Rekognition
1284
1432
  req.send_request(options)
1285
1433
  end
1286
1434
 
1435
+ # Deletes an existing project policy.
1436
+ #
1437
+ # To get a list of project policies attached to a project, call
1438
+ # ListProjectPolicies. To attach a project policy to a project, call
1439
+ # PutProjectPolicy.
1440
+ #
1441
+ # @option params [required, String] :project_arn
1442
+ # The Amazon Resource Name (ARN) of the project that the project policy
1443
+ # you want to delete is attached to.
1444
+ #
1445
+ # @option params [required, String] :policy_name
1446
+ # The name of the policy that you want to delete.
1447
+ #
1448
+ # @option params [String] :policy_revision_id
1449
+ # The ID of the project policy revision that you want to delete.
1450
+ #
1451
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1452
+ #
1453
+ #
1454
+ # @example Example: DeleteProjectPolicy
1455
+ #
1456
+ # # This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.
1457
+ #
1458
+ # resp = client.delete_project_policy({
1459
+ # policy_name: "testPolicy1",
1460
+ # policy_revision_id: "3b274c25e9203a56a99e00e3ff205fbc",
1461
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456",
1462
+ # })
1463
+ #
1464
+ # resp.to_h outputs the following:
1465
+ # {
1466
+ # }
1467
+ #
1468
+ # @example Request syntax with placeholder values
1469
+ #
1470
+ # resp = client.delete_project_policy({
1471
+ # project_arn: "ProjectArn", # required
1472
+ # policy_name: "ProjectPolicyName", # required
1473
+ # policy_revision_id: "ProjectPolicyRevisionId",
1474
+ # })
1475
+ #
1476
+ # @overload delete_project_policy(params = {})
1477
+ # @param [Hash] params ({})
1478
+ def delete_project_policy(params = {}, options = {})
1479
+ req = build_request(:delete_project_policy, params)
1480
+ req.send_request(options)
1481
+ end
1482
+
1287
1483
  # Deletes an Amazon Rekognition Custom Labels model.
1288
1484
  #
1289
1485
  # You can't delete a model if it is running or if it is training. To
@@ -1310,7 +1506,7 @@ module Aws::Rekognition
1310
1506
  #
1311
1507
  # @example Response structure
1312
1508
  #
1313
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING"
1509
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
1314
1510
  #
1315
1511
  # @overload delete_project_version(params = {})
1316
1512
  # @param [Hash] params ({})
@@ -1476,7 +1672,7 @@ module Aws::Rekognition
1476
1672
  # resp.project_version_descriptions[0].project_version_arn #=> String
1477
1673
  # resp.project_version_descriptions[0].creation_timestamp #=> Time
1478
1674
  # resp.project_version_descriptions[0].min_inference_units #=> Integer
1479
- # resp.project_version_descriptions[0].status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING"
1675
+ # resp.project_version_descriptions[0].status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
1480
1676
  # resp.project_version_descriptions[0].status_message #=> String
1481
1677
  # resp.project_version_descriptions[0].billable_training_time_in_seconds #=> Integer
1482
1678
  # resp.project_version_descriptions[0].training_end_timestamp #=> Time
@@ -1517,6 +1713,7 @@ module Aws::Rekognition
1517
1713
  # resp.project_version_descriptions[0].manifest_summary.s3_object.version #=> String
1518
1714
  # resp.project_version_descriptions[0].kms_key_id #=> String
1519
1715
  # resp.project_version_descriptions[0].max_inference_units #=> Integer
1716
+ # resp.project_version_descriptions[0].source_project_version_arn #=> String
1520
1717
  # resp.next_token #=> String
1521
1718
  #
1522
1719
  #
@@ -4386,6 +4583,85 @@ module Aws::Rekognition
4386
4583
  req.send_request(options)
4387
4584
  end
4388
4585
 
4586
+ # Gets a list of the project policies attached to a project.
4587
+ #
4588
+ # To attach a project policy to a project, call PutProjectPolicy. To
4589
+ # remove a project policy from a project, call DeleteProjectPolicy.
4590
+ #
4591
+ # @option params [required, String] :project_arn
4592
+ # The ARN of the project for which you want to list the project
4593
+ # policies.
4594
+ #
4595
+ # @option params [String] :next_token
4596
+ # If the previous response was incomplete (because there is more results
4597
+ # to retrieve), Amazon Rekognition Custom Labels returns a pagination
4598
+ # token in the response. You can use this pagination token to retrieve
4599
+ # the next set of results.
4600
+ #
4601
+ # @option params [Integer] :max_results
4602
+ # The maximum number of results to return per paginated call. The
4603
+ # largest value you can specify is 5. If you specify a value greater
4604
+ # than 5, a ValidationException error occurs. The default value is 5.
4605
+ #
4606
+ # @return [Types::ListProjectPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4607
+ #
4608
+ # * {Types::ListProjectPoliciesResponse#project_policies #project_policies} => Array&lt;Types::ProjectPolicy&gt;
4609
+ # * {Types::ListProjectPoliciesResponse#next_token #next_token} => String
4610
+ #
4611
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4612
+ #
4613
+ #
4614
+ # @example Example: ListProjectPolicies
4615
+ #
4616
+ # # This operation lists the project policies that are attached to an Amazon Rekognition Custom Labels project.
4617
+ #
4618
+ # resp = client.list_project_policies({
4619
+ # max_results: 5,
4620
+ # next_token: "",
4621
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929",
4622
+ # })
4623
+ #
4624
+ # resp.to_h outputs the following:
4625
+ # {
4626
+ # next_token: "",
4627
+ # project_policies: [
4628
+ # {
4629
+ # creation_timestamp: Time.parse("2022-07-01T11:51:27.086000-07:00"),
4630
+ # last_updated_timestamp: Time.parse("2022-07-01T11:51:27.086000-07:00"),
4631
+ # policy_document: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Statemented1\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:root\"},\"Action\":\"rekognition:CopyProjectVersion\",\"Resource\":\"*\"}]}",
4632
+ # policy_name: "testPolicy",
4633
+ # policy_revision_id: "3b274c25e9203a56a99e00e3ff205fbc",
4634
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929",
4635
+ # },
4636
+ # ],
4637
+ # }
4638
+ #
4639
+ # @example Request syntax with placeholder values
4640
+ #
4641
+ # resp = client.list_project_policies({
4642
+ # project_arn: "ProjectArn", # required
4643
+ # next_token: "ExtendedPaginationToken",
4644
+ # max_results: 1,
4645
+ # })
4646
+ #
4647
+ # @example Response structure
4648
+ #
4649
+ # resp.project_policies #=> Array
4650
+ # resp.project_policies[0].project_arn #=> String
4651
+ # resp.project_policies[0].policy_name #=> String
4652
+ # resp.project_policies[0].policy_revision_id #=> String
4653
+ # resp.project_policies[0].policy_document #=> String
4654
+ # resp.project_policies[0].creation_timestamp #=> Time
4655
+ # resp.project_policies[0].last_updated_timestamp #=> Time
4656
+ # resp.next_token #=> String
4657
+ #
4658
+ # @overload list_project_policies(params = {})
4659
+ # @param [Hash] params ({})
4660
+ def list_project_policies(params = {}, options = {})
4661
+ req = build_request(:list_project_policies, params)
4662
+ req.send_request(options)
4663
+ end
4664
+
4389
4665
  # Gets a list of stream processors that you have created with
4390
4666
  # CreateStreamProcessor.
4391
4667
  #
@@ -4459,6 +4735,92 @@ module Aws::Rekognition
4459
4735
  req.send_request(options)
4460
4736
  end
4461
4737
 
4738
+ # Attaches a project policy to a Amazon Rekognition Custom Labels
4739
+ # project in a trusting AWS account. A project policy specifies that a
4740
+ # trusted AWS account can copy a model version from a trusting AWS
4741
+ # account to a project in the trusted AWS account. To copy a model
4742
+ # version you use the CopyProjectVersion operation.
4743
+ #
4744
+ # For more information about the format of a project policy document,
4745
+ # see Attaching a project policy (SDK) in the *Amazon Rekognition Custom
4746
+ # Labels Developer Guide*.
4747
+ #
4748
+ # The response from `PutProjectPolicy` is a revision ID for the project
4749
+ # policy. You can attach multiple project policies to a project. You can
4750
+ # also update an existing project policy by specifying the policy
4751
+ # revision ID of the existing policy.
4752
+ #
4753
+ # To remove a project policy from a project, call DeleteProjectPolicy.
4754
+ # To get a list of project policies attached to a project, call
4755
+ # ListProjectPolicies.
4756
+ #
4757
+ # You copy a model version by calling CopyProjectVersion.
4758
+ #
4759
+ # @option params [required, String] :project_arn
4760
+ # The Amazon Resource Name (ARN) of the project that the project policy
4761
+ # is attached to.
4762
+ #
4763
+ # @option params [required, String] :policy_name
4764
+ # A name for the policy.
4765
+ #
4766
+ # @option params [String] :policy_revision_id
4767
+ # The revision ID for the Project Policy. Each time you modify a policy,
4768
+ # Amazon Rekognition Custom Labels generates and assigns a new
4769
+ # `PolicyRevisionId` and then deletes the previous version of the
4770
+ # policy.
4771
+ #
4772
+ # @option params [required, String] :policy_document
4773
+ # A resource policy to add to the model. The policy is a JSON structure
4774
+ # that contains one or more statements that define the policy. The
4775
+ # policy must follow the IAM syntax. For more information about the
4776
+ # contents of a JSON policy document, see [IAM JSON policy
4777
+ # reference][1].
4778
+ #
4779
+ #
4780
+ #
4781
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html
4782
+ #
4783
+ # @return [Types::PutProjectPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4784
+ #
4785
+ # * {Types::PutProjectPolicyResponse#policy_revision_id #policy_revision_id} => String
4786
+ #
4787
+ #
4788
+ # @example Example: PutProjectPolicy
4789
+ #
4790
+ # # This operation attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account.
4791
+ #
4792
+ # resp = client.put_project_policy({
4793
+ # policy_document: "'{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"ALLOW\",\"Principal\":{\"AWS\":\"principal\"},\"Action\":\"rekognition:CopyProjectVersion\",\"Resource\":\"arn:aws:rekognition:us-east-1:123456789012:project/my-sdk-project/version/DestinationVersionName/1627045542080\"}]}'",
4794
+ # policy_name: "SamplePolicy",
4795
+ # policy_revision_id: "0123456789abcdef",
4796
+ # project_arn: "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929",
4797
+ # })
4798
+ #
4799
+ # resp.to_h outputs the following:
4800
+ # {
4801
+ # policy_revision_id: "0123456789abcdef",
4802
+ # }
4803
+ #
4804
+ # @example Request syntax with placeholder values
4805
+ #
4806
+ # resp = client.put_project_policy({
4807
+ # project_arn: "ProjectArn", # required
4808
+ # policy_name: "ProjectPolicyName", # required
4809
+ # policy_revision_id: "ProjectPolicyRevisionId",
4810
+ # policy_document: "ProjectPolicyDocument", # required
4811
+ # })
4812
+ #
4813
+ # @example Response structure
4814
+ #
4815
+ # resp.policy_revision_id #=> String
4816
+ #
4817
+ # @overload put_project_policy(params = {})
4818
+ # @param [Hash] params ({})
4819
+ def put_project_policy(params = {}, options = {})
4820
+ req = build_request(:put_project_policy, params)
4821
+ req.send_request(options)
4822
+ end
4823
+
4462
4824
  # Returns an array of celebrities recognized in the input image. For
4463
4825
  # more information, see Recognizing celebrities in the Amazon
4464
4826
  # Rekognition Developer Guide.
@@ -5444,7 +5806,7 @@ module Aws::Rekognition
5444
5806
  #
5445
5807
  # @example Response structure
5446
5808
  #
5447
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING"
5809
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
5448
5810
  #
5449
5811
  # @overload start_project_version(params = {})
5450
5812
  # @param [Hash] params ({})
@@ -5747,7 +6109,7 @@ module Aws::Rekognition
5747
6109
  #
5748
6110
  # @example Response structure
5749
6111
  #
5750
- # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING"
6112
+ # resp.status #=> String, one of "TRAINING_IN_PROGRESS", "TRAINING_COMPLETED", "TRAINING_FAILED", "STARTING", "RUNNING", "FAILED", "STOPPING", "STOPPED", "DELETING", "COPYING_IN_PROGRESS", "COPYING_COMPLETED", "COPYING_FAILED"
5751
6113
  #
5752
6114
  # @overload stop_project_version(params = {})
5753
6115
  # @param [Hash] params ({})
@@ -5976,7 +6338,7 @@ module Aws::Rekognition
5976
6338
  params: params,
5977
6339
  config: config)
5978
6340
  context[:gem_name] = 'aws-sdk-rekognition'
5979
- context[:gem_version] = '1.69.0'
6341
+ context[:gem_version] = '1.71.0'
5980
6342
  Seahorse::Client::Request.new(handlers, context)
5981
6343
  end
5982
6344