aws-sdk-secretsmanager 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7cea5714052ed47b711631b548a6b30ef6686c8
4
- data.tar.gz: 4a6287efec0e527b172806fecab21f042ee1df97
3
+ metadata.gz: 56df7596f171de9be5328c26a0317eaf9976801c
4
+ data.tar.gz: 7e5a87c3519a5b9f3527cf773dc0722d0399ae97
5
5
  SHA512:
6
- metadata.gz: 45c33a1cfa2d892ca8a21009b880bddc6aa20aea5c8160efa9bb910933451f62b74ca882e0de60b72ba148b6a769166df168d9469b5411b5243fe754ff51b316
7
- data.tar.gz: 5521e0d08af9f682d2592e40505dd93a97d96f4a2cbea14b7c5d4a2d403effc5275b0de0b849960dcd8a20e1f076efb1cd09af33753d008ba9b839caeb6cead9
6
+ metadata.gz: 92d17dd26a365cb854f44eae0fcac3138fccb2de31e7048cb86bbdc3a9fae907675bdb5bf17ee9db7e4b960a441ed88126929402afd569e84fb29c4d4d1df620
7
+ data.tar.gz: f28dbee1cd9b9e6c80a9c451d0d027aff5823da9cea63fe9aa177aefceabffb01a80ff010f348a8b4902771c5fc267808b49a650c230f8b26ebf3885508322ba
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-secretsmanager/customizations'
42
42
  # @service
43
43
  module Aws::SecretsManager
44
44
 
45
- GEM_VERSION = '1.9.0'
45
+ GEM_VERSION = '1.10.0'
46
46
 
47
47
  end
@@ -601,6 +601,21 @@ module Aws::SecretsManager
601
601
  # * {Types::DeleteResourcePolicyResponse#arn #arn} => String
602
602
  # * {Types::DeleteResourcePolicyResponse#name #name} => String
603
603
  #
604
+ #
605
+ # @example Example: To delete the resource-based policy attached to a secret
606
+ #
607
+ # # The following example shows how to delete the resource-based policy that is attached to a secret.
608
+ #
609
+ # resp = client.delete_resource_policy({
610
+ # secret_id: "MyTestDatabaseSecret",
611
+ # })
612
+ #
613
+ # resp.to_h outputs the following:
614
+ # {
615
+ # arn: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseMasterSecret-a1b2c3",
616
+ # name: "MyTestDatabaseSecret",
617
+ # }
618
+ #
604
619
  # @example Request syntax with placeholder values
605
620
  #
606
621
  # resp = client.delete_resource_policy({
@@ -979,6 +994,22 @@ module Aws::SecretsManager
979
994
  # * {Types::GetResourcePolicyResponse#name #name} => String
980
995
  # * {Types::GetResourcePolicyResponse#resource_policy #resource_policy} => String
981
996
  #
997
+ #
998
+ # @example Example: To retrieve the resource-based policy attached to a secret
999
+ #
1000
+ # # The following example shows how to retrieve the resource-based policy that is attached to a secret.
1001
+ #
1002
+ # resp = client.get_resource_policy({
1003
+ # secret_id: "MyTestDatabaseSecret",
1004
+ # })
1005
+ #
1006
+ # resp.to_h outputs the following:
1007
+ # {
1008
+ # arn: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
1009
+ # name: "MyTestDatabaseSecret",
1010
+ # resource_policy: "{\n\"Version\":\"2012-10-17\",\n\"Statement\":[{\n\"Effect\":\"Allow\",\n\"Principal\":{\n\"AWS\":\"arn:aws:iam::123456789012:root\"\n},\n\"Action\":\"secretsmanager:GetSecretValue\",\n\"Resource\":\"*\"\n}]\n}",
1011
+ # }
1012
+ #
982
1013
  # @example Request syntax with placeholder values
983
1014
  #
984
1015
  # resp = client.get_resource_policy({
@@ -1428,6 +1459,22 @@ module Aws::SecretsManager
1428
1459
  # * {Types::PutResourcePolicyResponse#arn #arn} => String
1429
1460
  # * {Types::PutResourcePolicyResponse#name #name} => String
1430
1461
  #
1462
+ #
1463
+ # @example Example: To add a resource-based policy to a secret
1464
+ #
1465
+ # # The following example shows how to add a resource-based policy to a secret.
1466
+ #
1467
+ # resp = client.put_resource_policy({
1468
+ # resource_policy: "{\n\"Version\":\"2012-10-17\",\n\"Statement\":[{\n\"Effect\":\"Allow\",\n\"Principal\":{\n\"AWS\":\"arn:aws:iam::123456789012:root\"\n},\n\"Action\":\"secretsmanager:GetSecretValue\",\n\"Resource\":\"*\"\n}]\n}",
1469
+ # secret_id: "MyTestDatabaseSecret",
1470
+ # })
1471
+ #
1472
+ # resp.to_h outputs the following:
1473
+ # {
1474
+ # arn: "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
1475
+ # name: "MyTestDatabaseSecret",
1476
+ # }
1477
+ #
1431
1478
  # @example Request syntax with placeholder values
1432
1479
  #
1433
1480
  # resp = client.put_resource_policy({
@@ -2513,7 +2560,7 @@ module Aws::SecretsManager
2513
2560
  params: params,
2514
2561
  config: config)
2515
2562
  context[:gem_name] = 'aws-sdk-secretsmanager'
2516
- context[:gem_version] = '1.9.0'
2563
+ context[:gem_version] = '1.10.0'
2517
2564
  Seahorse::Client::Request.new(handlers, context)
2518
2565
  end
2519
2566
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-secretsmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-27 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core