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.
@@ -1,216 +1,217 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
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
- module Aws
9
- module IAM
10
- class AccountPasswordPolicy
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(options = {})
15
- # @option options [Client] :client
16
- def initialize(*args)
17
- options = Hash === args.last ? args.pop.dup : {}
18
- @data = options.delete(:data)
19
- @client = options.delete(:client) || Client.new(options)
20
- end
21
-
22
- # @!group Read-Only Attributes
23
-
24
- # Minimum length to require for IAM user passwords.
25
- # @return [Integer]
26
- def minimum_password_length
27
- data.minimum_password_length
28
- end
29
-
30
- # Specifies whether to require symbols for IAM user passwords.
31
- # @return [Boolean]
32
- def require_symbols
33
- data.require_symbols
34
- end
35
-
36
- # Specifies whether to require numbers for IAM user passwords.
37
- # @return [Boolean]
38
- def require_numbers
39
- data.require_numbers
40
- end
41
-
42
- # Specifies whether to require uppercase characters for IAM user
43
- # passwords.
44
- # @return [Boolean]
45
- def require_uppercase_characters
46
- data.require_uppercase_characters
47
- end
48
-
49
- # Specifies whether to require lowercase characters for IAM user
50
- # passwords.
51
- # @return [Boolean]
52
- def require_lowercase_characters
53
- data.require_lowercase_characters
54
- end
55
-
56
- # Specifies whether IAM users are allowed to change their own password.
57
- # @return [Boolean]
58
- def allow_users_to_change_password
59
- data.allow_users_to_change_password
60
- end
61
-
62
- # Indicates whether passwords in the account expire. Returns true if
63
- # MaxPasswordAge is contains a value greater than 0. Returns false if
64
- # MaxPasswordAge is 0 or not present.
65
- # @return [Boolean]
66
- def expire_passwords
67
- data.expire_passwords
68
- end
69
-
70
- # The number of days that an IAM user password is valid.
71
- # @return [Integer]
72
- def max_password_age
73
- data.max_password_age
74
- end
75
-
76
- # Specifies the number of previous passwords that IAM users are
77
- # prevented from reusing.
78
- # @return [Integer]
79
- def password_reuse_prevention
80
- data.password_reuse_prevention
81
- end
82
-
83
- # Specifies whether IAM users are prevented from setting a new password
84
- # after their password has expired.
85
- # @return [Boolean]
86
- def hard_expiry
87
- data.hard_expiry
88
- end
89
-
90
- # @!endgroup
91
-
92
- # @return [Client]
93
- def client
94
- @client
95
- end
96
-
97
- # Loads, or reloads {#data} for the current {AccountPasswordPolicy}.
98
- # Returns `self` making it possible to chain methods.
99
- #
100
- # account_password_policy.reload.data
101
- #
102
- # @return [self]
103
- def load
104
- resp = @client.get_account_password_policy
105
- @data = resp.passwordpolicy
106
- self
107
- end
108
- alias :reload :load
109
-
110
- # @return [Types::PasswordPolicy]
111
- # Returns the data for this {AccountPasswordPolicy}. Calls
112
- # {Client#get_account_password_policy} if {#data_loaded?} is `false`.
113
- def data
114
- load unless @data
115
- @data
116
- end
117
-
118
- # @return [Boolean]
119
- # Returns `true` if this resource is loaded. Accessing attributes or
120
- # {#data} on an unloaded resource will trigger a call to {#load}.
121
- def data_loaded?
122
- !!@data
123
- end
124
-
125
- # @!group Actions
126
-
127
- # @param [Hash] options ({})
128
- # @return [EmptyStructure]
129
- def delete(options = {})
130
- resp = @client.delete_account_password_policy(options)
131
- resp.data
132
- end
133
-
134
- # @example Request syntax with placeholder values
135
- #
136
- # account_password_policy.update({
137
- # minimum_password_length: 1,
138
- # require_symbols: false,
139
- # require_numbers: false,
140
- # require_uppercase_characters: false,
141
- # require_lowercase_characters: false,
142
- # allow_users_to_change_password: false,
143
- # max_password_age: 1,
144
- # password_reuse_prevention: 1,
145
- # hard_expiry: false,
146
- # })
147
- # @param [Hash] options ({})
148
- # @option options [Integer] :minimum_password_length
149
- # The minimum number of characters allowed in an IAM user password.
150
- #
151
- # Default value: 6
152
- # @option options [Boolean] :require_symbols
153
- # Specifies whether IAM user passwords must contain at least one of the
154
- # following non-alphanumeric characters:
155
- #
156
- # ! @ # $ % ^ & * ( ) \_ + - = \[ \] \\\{ \\} \| '
157
- #
158
- # Default value: false
159
- # @option options [Boolean] :require_numbers
160
- # Specifies whether IAM user passwords must contain at least one numeric
161
- # character (0 to 9).
162
- #
163
- # Default value: false
164
- # @option options [Boolean] :require_uppercase_characters
165
- # Specifies whether IAM user passwords must contain at least one
166
- # uppercase character from the ISO basic Latin alphabet (A to Z).
167
- #
168
- # Default value: false
169
- # @option options [Boolean] :require_lowercase_characters
170
- # Specifies whether IAM user passwords must contain at least one
171
- # lowercase character from the ISO basic Latin alphabet (a to z).
172
- #
173
- # Default value: false
174
- # @option options [Boolean] :allow_users_to_change_password
175
- # Allows all IAM users in your account to use the AWS Management Console
176
- # to change their own passwords. For more information, see [Letting IAM
177
- # Users Change Their Own Passwords][1] in the *IAM User Guide*.
178
- #
179
- # Default value: false
180
- #
181
- #
182
- #
183
- # [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/HowToPwdIAMUser.html
184
- # @option options [Integer] :max_password_age
185
- # The number of days that an IAM user password is valid. The default
186
- # value of 0 means IAM user passwords never expire.
187
- #
188
- # Default value: 0
189
- # @option options [Integer] :password_reuse_prevention
190
- # Specifies the number of previous passwords that IAM users are
191
- # prevented from reusing. The default value of 0 means IAM users are not
192
- # prevented from reusing previous passwords.
193
- #
194
- # Default value: 0
195
- # @option options [Boolean] :hard_expiry
196
- # Prevents IAM users from setting a new password after their password
197
- # has expired.
198
- #
199
- # Default value: false
200
- # @return [EmptyStructure]
201
- def update(options = {})
202
- resp = @client.update_account_password_policy(options)
203
- resp.data
204
- end
205
-
206
- # @deprecated
207
- # @api private
208
- def identifiers
209
- {}
210
- end
211
- deprecated(:identifiers)
212
-
213
- class Collection < Aws::Resources::Collection; end
8
+ module Aws::IAM
9
+ class AccountPasswordPolicy
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(options = {})
14
+ # @option options [Client] :client
15
+ def initialize(*args)
16
+ options = Hash === args.last ? args.pop.dup : {}
17
+ @data = options.delete(:data)
18
+ @client = options.delete(:client) || Client.new(options)
19
+ end
20
+
21
+ # @!group Read-Only Attributes
22
+
23
+ # Minimum length to require for IAM user passwords.
24
+ # @return [Integer]
25
+ def minimum_password_length
26
+ data.minimum_password_length
27
+ end
28
+
29
+ # Specifies whether to require symbols for IAM user passwords.
30
+ # @return [Boolean]
31
+ def require_symbols
32
+ data.require_symbols
33
+ end
34
+
35
+ # Specifies whether to require numbers for IAM user passwords.
36
+ # @return [Boolean]
37
+ def require_numbers
38
+ data.require_numbers
39
+ end
40
+
41
+ # Specifies whether to require uppercase characters for IAM user
42
+ # passwords.
43
+ # @return [Boolean]
44
+ def require_uppercase_characters
45
+ data.require_uppercase_characters
46
+ end
47
+
48
+ # Specifies whether to require lowercase characters for IAM user
49
+ # passwords.
50
+ # @return [Boolean]
51
+ def require_lowercase_characters
52
+ data.require_lowercase_characters
53
+ end
54
+
55
+ # Specifies whether IAM users are allowed to change their own password.
56
+ # @return [Boolean]
57
+ def allow_users_to_change_password
58
+ data.allow_users_to_change_password
214
59
  end
60
+
61
+ # Indicates whether passwords in the account expire. Returns true if
62
+ # MaxPasswordAge is contains a value greater than 0. Returns false if
63
+ # MaxPasswordAge is 0 or not present.
64
+ # @return [Boolean]
65
+ def expire_passwords
66
+ data.expire_passwords
67
+ end
68
+
69
+ # The number of days that an IAM user password is valid.
70
+ # @return [Integer]
71
+ def max_password_age
72
+ data.max_password_age
73
+ end
74
+
75
+ # Specifies the number of previous passwords that IAM users are
76
+ # prevented from reusing.
77
+ # @return [Integer]
78
+ def password_reuse_prevention
79
+ data.password_reuse_prevention
80
+ end
81
+
82
+ # Specifies whether IAM users are prevented from setting a new password
83
+ # after their password has expired.
84
+ # @return [Boolean]
85
+ def hard_expiry
86
+ data.hard_expiry
87
+ end
88
+
89
+ # @!endgroup
90
+
91
+ # @return [Client]
92
+ def client
93
+ @client
94
+ end
95
+
96
+ # Loads, or reloads {#data} for the current {AccountPasswordPolicy}.
97
+ # Returns `self` making it possible to chain methods.
98
+ #
99
+ # account_password_policy.reload.data
100
+ #
101
+ # @return [self]
102
+ def load
103
+ resp = @client.get_account_password_policy
104
+ @data = resp.passwordpolicy
105
+ self
106
+ end
107
+ alias :reload :load
108
+
109
+ # @return [Types::PasswordPolicy]
110
+ # Returns the data for this {AccountPasswordPolicy}. Calls
111
+ # {Client#get_account_password_policy} if {#data_loaded?} is `false`.
112
+ def data
113
+ load unless @data
114
+ @data
115
+ end
116
+
117
+ # @return [Boolean]
118
+ # Returns `true` if this resource is loaded. Accessing attributes or
119
+ # {#data} on an unloaded resource will trigger a call to {#load}.
120
+ def data_loaded?
121
+ !!@data
122
+ end
123
+
124
+ # @!group Actions
125
+
126
+ # @example Request syntax with placeholder values
127
+ #
128
+ # account_password_policy.delete()
129
+ # @param [Hash] options ({})
130
+ # @return [EmptyStructure]
131
+ def delete(options = {})
132
+ resp = @client.delete_account_password_policy(options)
133
+ resp.data
134
+ end
135
+
136
+ # @example Request syntax with placeholder values
137
+ #
138
+ # account_password_policy.update({
139
+ # minimum_password_length: 1,
140
+ # require_symbols: false,
141
+ # require_numbers: false,
142
+ # require_uppercase_characters: false,
143
+ # require_lowercase_characters: false,
144
+ # allow_users_to_change_password: false,
145
+ # max_password_age: 1,
146
+ # password_reuse_prevention: 1,
147
+ # hard_expiry: false,
148
+ # })
149
+ # @param [Hash] options ({})
150
+ # @option options [Integer] :minimum_password_length
151
+ # The minimum number of characters allowed in an IAM user password.
152
+ #
153
+ # Default value: 6
154
+ # @option options [Boolean] :require_symbols
155
+ # Specifies whether IAM user passwords must contain at least one of the
156
+ # following non-alphanumeric characters:
157
+ #
158
+ # ! @ # $ % ^ &amp;amp; * ( ) \_ + - = \[ \] \\\{ \\} \| '
159
+ #
160
+ # Default value: false
161
+ # @option options [Boolean] :require_numbers
162
+ # Specifies whether IAM user passwords must contain at least one numeric
163
+ # character (0 to 9).
164
+ #
165
+ # Default value: false
166
+ # @option options [Boolean] :require_uppercase_characters
167
+ # Specifies whether IAM user passwords must contain at least one
168
+ # uppercase character from the ISO basic Latin alphabet (A to Z).
169
+ #
170
+ # Default value: false
171
+ # @option options [Boolean] :require_lowercase_characters
172
+ # Specifies whether IAM user passwords must contain at least one
173
+ # lowercase character from the ISO basic Latin alphabet (a to z).
174
+ #
175
+ # Default value: false
176
+ # @option options [Boolean] :allow_users_to_change_password
177
+ # Allows all IAM users in your account to use the AWS Management Console
178
+ # to change their own passwords. For more information, see [Letting IAM
179
+ # Users Change Their Own Passwords][1] in the *IAM User Guide*.
180
+ #
181
+ # Default value: false
182
+ #
183
+ #
184
+ #
185
+ # [1]: http://docs.aws.amazon.com/IAM/latest/UserGuide/HowToPwdIAMUser.html
186
+ # @option options [Integer] :max_password_age
187
+ # The number of days that an IAM user password is valid. The default
188
+ # value of 0 means IAM user passwords never expire.
189
+ #
190
+ # Default value: 0
191
+ # @option options [Integer] :password_reuse_prevention
192
+ # Specifies the number of previous passwords that IAM users are
193
+ # prevented from reusing. The default value of 0 means IAM users are not
194
+ # prevented from reusing previous passwords.
195
+ #
196
+ # Default value: 0
197
+ # @option options [Boolean] :hard_expiry
198
+ # Prevents IAM users from setting a new password after their password
199
+ # has expired.
200
+ #
201
+ # Default value: false
202
+ # @return [EmptyStructure]
203
+ def update(options = {})
204
+ resp = @client.update_account_password_policy(options)
205
+ resp.data
206
+ end
207
+
208
+ # @deprecated
209
+ # @api private
210
+ def identifiers
211
+ {}
212
+ end
213
+ deprecated(:identifiers)
214
+
215
+ class Collection < Aws::Resources::Collection; end
215
216
  end
216
217
  end
@@ -1,76 +1,74 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
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
- module Aws
9
- module IAM
10
- class AccountSummary
8
+ module Aws::IAM
9
+ class AccountSummary
11
10
 
12
- extend Aws::Deprecations
11
+ extend Aws::Deprecations
13
12
 
14
- # @overload def initialize(options = {})
15
- # @option options [Client] :client
16
- def initialize(*args)
17
- options = Hash === args.last ? args.pop.dup : {}
18
- @data = options.delete(:data)
19
- @client = options.delete(:client) || Client.new(options)
20
- end
21
-
22
- # @!group Read-Only Attributes
13
+ # @overload def initialize(options = {})
14
+ # @option options [Client] :client
15
+ def initialize(*args)
16
+ options = Hash === args.last ? args.pop.dup : {}
17
+ @data = options.delete(:data)
18
+ @client = options.delete(:client) || Client.new(options)
19
+ end
23
20
 
24
- # A set of key value pairs containing information about IAM entity usage
25
- # and IAM quotas.
26
- # @return [Hash<String,Integer>]
27
- def summary_map
28
- data.summary_map
29
- end
21
+ # @!group Read-Only Attributes
30
22
 
31
- # @!endgroup
23
+ # A set of key value pairs containing information about IAM entity usage
24
+ # and IAM quotas.
25
+ # @return [Hash<String,Integer>]
26
+ def summary_map
27
+ data.summary_map
28
+ end
32
29
 
33
- # @return [Client]
34
- def client
35
- @client
36
- end
30
+ # @!endgroup
37
31
 
38
- # Loads, or reloads {#data} for the current {AccountSummary}.
39
- # Returns `self` making it possible to chain methods.
40
- #
41
- # account_summary.reload.data
42
- #
43
- # @return [self]
44
- def load
45
- resp = @client.get_account_summary
46
- @data = resp.data
47
- self
48
- end
49
- alias :reload :load
32
+ # @return [Client]
33
+ def client
34
+ @client
35
+ end
50
36
 
51
- # @return [Types::GetAccountSummaryResponse]
52
- # Returns the data for this {AccountSummary}. Calls
53
- # {Client#get_account_summary} if {#data_loaded?} is `false`.
54
- def data
55
- load unless @data
56
- @data
57
- end
37
+ # Loads, or reloads {#data} for the current {AccountSummary}.
38
+ # Returns `self` making it possible to chain methods.
39
+ #
40
+ # account_summary.reload.data
41
+ #
42
+ # @return [self]
43
+ def load
44
+ resp = @client.get_account_summary
45
+ @data = resp.data
46
+ self
47
+ end
48
+ alias :reload :load
58
49
 
59
- # @return [Boolean]
60
- # Returns `true` if this resource is loaded. Accessing attributes or
61
- # {#data} on an unloaded resource will trigger a call to {#load}.
62
- def data_loaded?
63
- !!@data
64
- end
50
+ # @return [Types::GetAccountSummaryResponse]
51
+ # Returns the data for this {AccountSummary}. Calls
52
+ # {Client#get_account_summary} if {#data_loaded?} is `false`.
53
+ def data
54
+ load unless @data
55
+ @data
56
+ end
65
57
 
66
- # @deprecated
67
- # @api private
68
- def identifiers
69
- {}
70
- end
71
- deprecated(:identifiers)
58
+ # @return [Boolean]
59
+ # Returns `true` if this resource is loaded. Accessing attributes or
60
+ # {#data} on an unloaded resource will trigger a call to {#load}.
61
+ def data_loaded?
62
+ !!@data
63
+ end
72
64
 
73
- class Collection < Aws::Resources::Collection; end
65
+ # @deprecated
66
+ # @api private
67
+ def identifiers
68
+ {}
74
69
  end
70
+ deprecated(:identifiers)
71
+
72
+ class Collection < Aws::Resources::Collection; end
75
73
  end
76
74
  end