aws-sdk-iam 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-iam.rb +1 -1
- data/lib/aws-sdk-iam/access_key.rb +150 -152
- data/lib/aws-sdk-iam/access_key_pair.rb +160 -162
- data/lib/aws-sdk-iam/account_password_policy.rb +208 -207
- data/lib/aws-sdk-iam/account_summary.rb +55 -57
- data/lib/aws-sdk-iam/assume_role_policy.rb +101 -101
- data/lib/aws-sdk-iam/client.rb +7849 -6742
- data/lib/aws-sdk-iam/client_api.rb +2896 -2784
- data/lib/aws-sdk-iam/current_user.rb +231 -230
- data/lib/aws-sdk-iam/errors.rb +4 -13
- data/lib/aws-sdk-iam/group.rb +422 -418
- data/lib/aws-sdk-iam/group_policy.rb +153 -153
- data/lib/aws-sdk-iam/instance_profile.rb +223 -223
- data/lib/aws-sdk-iam/login_profile.rb +171 -172
- data/lib/aws-sdk-iam/mfa_device.rb +163 -165
- data/lib/aws-sdk-iam/policy.rb +508 -502
- data/lib/aws-sdk-iam/policy_version.rb +149 -151
- data/lib/aws-sdk-iam/resource.rb +986 -969
- data/lib/aws-sdk-iam/role.rb +262 -264
- data/lib/aws-sdk-iam/role_policy.rb +153 -153
- data/lib/aws-sdk-iam/saml_provider.rb +120 -122
- data/lib/aws-sdk-iam/server_certificate.rb +144 -145
- data/lib/aws-sdk-iam/signing_certificate.rb +155 -157
- data/lib/aws-sdk-iam/types.rb +8333 -7476
- data/lib/aws-sdk-iam/user.rb +677 -672
- data/lib/aws-sdk-iam/user_policy.rb +153 -153
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +117 -119
- data/lib/aws-sdk-iam/waiters.rb +76 -77
- metadata +2 -2
data/lib/aws-sdk-iam/waiters.rb
CHANGED
@@ -1,98 +1,97 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
|
-
module Aws
|
11
|
-
module
|
12
|
-
module Waiters
|
13
|
-
class InstanceProfileExists
|
10
|
+
module Aws::IAM
|
11
|
+
module Waiters
|
14
12
|
|
15
|
-
|
16
|
-
# @option options [required, Client] :client
|
17
|
-
# @option options [Integer] :max_attempts (40)
|
18
|
-
# @option options [Integer] :delay (1)
|
19
|
-
# @option options [Proc] :before_attempt
|
20
|
-
# @option options [Proc] :before_wait
|
21
|
-
def initialize(options)
|
22
|
-
@client = options.fetch(:client)
|
23
|
-
@waiter = Aws::Waiters::Waiter.new({
|
24
|
-
max_attempts: 40,
|
25
|
-
delay: 1,
|
26
|
-
poller: Aws::Waiters::Poller.new(
|
27
|
-
operation_name: :get_instance_profile,
|
28
|
-
acceptors: [
|
29
|
-
{
|
30
|
-
"expected" => 200,
|
31
|
-
"matcher" => "status",
|
32
|
-
"state" => "success"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"state" => "retry",
|
36
|
-
"matcher" => "status",
|
37
|
-
"expected" => 404
|
38
|
-
}
|
39
|
-
]
|
40
|
-
)
|
41
|
-
}.merge(options))
|
42
|
-
end
|
13
|
+
class InstanceProfileExists
|
43
14
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (40)
|
18
|
+
# @option options [Integer] :delay (1)
|
19
|
+
# @option options [Proc] :before_attempt
|
20
|
+
# @option options [Proc] :before_wait
|
21
|
+
def initialize(options)
|
22
|
+
@client = options.fetch(:client)
|
23
|
+
@waiter = Aws::Waiters::Waiter.new({
|
24
|
+
max_attempts: 40,
|
25
|
+
delay: 1,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :get_instance_profile,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"expected" => 200,
|
31
|
+
"matcher" => "status",
|
32
|
+
"state" => "success"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"state" => "retry",
|
36
|
+
"matcher" => "status",
|
37
|
+
"expected" => 404
|
38
|
+
}
|
39
|
+
]
|
40
|
+
)
|
41
|
+
}.merge(options))
|
42
|
+
end
|
52
43
|
|
44
|
+
# @option (see Client#get_instance_profile)
|
45
|
+
# @return (see Client#get_instance_profile)
|
46
|
+
def wait(params = {})
|
47
|
+
@waiter.wait(client: @client, params: params)
|
53
48
|
end
|
54
49
|
|
55
|
-
|
50
|
+
# @api private
|
51
|
+
attr_reader :waiter
|
56
52
|
|
57
|
-
|
58
|
-
# @option options [required, Client] :client
|
59
|
-
# @option options [Integer] :max_attempts (20)
|
60
|
-
# @option options [Integer] :delay (1)
|
61
|
-
# @option options [Proc] :before_attempt
|
62
|
-
# @option options [Proc] :before_wait
|
63
|
-
def initialize(options)
|
64
|
-
@client = options.fetch(:client)
|
65
|
-
@waiter = Aws::Waiters::Waiter.new({
|
66
|
-
max_attempts: 20,
|
67
|
-
delay: 1,
|
68
|
-
poller: Aws::Waiters::Poller.new(
|
69
|
-
operation_name: :get_user,
|
70
|
-
acceptors: [
|
71
|
-
{
|
72
|
-
"state" => "success",
|
73
|
-
"matcher" => "status",
|
74
|
-
"expected" => 200
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"state" => "retry",
|
78
|
-
"matcher" => "error",
|
79
|
-
"expected" => "NoSuchEntity"
|
80
|
-
}
|
81
|
-
]
|
82
|
-
)
|
83
|
-
}.merge(options))
|
84
|
-
end
|
53
|
+
end
|
85
54
|
|
86
|
-
|
87
|
-
# @return (see Client#get_user)
|
88
|
-
def wait(params = {})
|
89
|
-
@waiter.wait(client: @client, params: params)
|
90
|
-
end
|
55
|
+
class UserExists
|
91
56
|
|
92
|
-
|
93
|
-
|
57
|
+
# @param [Hash] options
|
58
|
+
# @option options [required, Client] :client
|
59
|
+
# @option options [Integer] :max_attempts (20)
|
60
|
+
# @option options [Integer] :delay (1)
|
61
|
+
# @option options [Proc] :before_attempt
|
62
|
+
# @option options [Proc] :before_wait
|
63
|
+
def initialize(options)
|
64
|
+
@client = options.fetch(:client)
|
65
|
+
@waiter = Aws::Waiters::Waiter.new({
|
66
|
+
max_attempts: 20,
|
67
|
+
delay: 1,
|
68
|
+
poller: Aws::Waiters::Poller.new(
|
69
|
+
operation_name: :get_user,
|
70
|
+
acceptors: [
|
71
|
+
{
|
72
|
+
"state" => "success",
|
73
|
+
"matcher" => "status",
|
74
|
+
"expected" => 200
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"state" => "retry",
|
78
|
+
"matcher" => "error",
|
79
|
+
"expected" => "NoSuchEntity"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
)
|
83
|
+
}.merge(options))
|
84
|
+
end
|
94
85
|
|
86
|
+
# @option (see Client#get_user)
|
87
|
+
# @return (see Client#get_user)
|
88
|
+
def wait(params = {})
|
89
|
+
@waiter.wait(client: @client, params: params)
|
95
90
|
end
|
91
|
+
|
92
|
+
# @api private
|
93
|
+
attr_reader :waiter
|
94
|
+
|
96
95
|
end
|
97
96
|
end
|
98
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
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:
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|