aws-sdk-iam 1.93.0 → 1.94.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iam/client.rb +1 -1
- data/lib/aws-sdk-iam/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-iam.rb +1 -1
- data/sig/access_key.rbs +62 -0
- data/sig/access_key_pair.rbs +63 -0
- data/sig/account_password_policy.rbs +80 -0
- data/sig/account_summary.rbs +35 -0
- data/sig/assume_role_policy.rbs +43 -0
- data/sig/client.rbs +1826 -0
- data/sig/current_user.rbs +77 -0
- data/sig/errors.rbs +97 -0
- data/sig/group.rbs +118 -0
- data/sig/group_policy.rbs +58 -0
- data/sig/instance_profile.rbs +80 -0
- data/sig/login_profile.rbs +65 -0
- data/sig/mfa_device.rbs +62 -0
- data/sig/policy.rbs +147 -0
- data/sig/policy_version.rbs +59 -0
- data/sig/resource.rbs +304 -0
- data/sig/role.rbs +107 -0
- data/sig/role_policy.rbs +58 -0
- data/sig/saml_provider.rbs +60 -0
- data/sig/server_certificate.rbs +61 -0
- data/sig/signing_certificate.rbs +65 -0
- data/sig/types.rbs +2131 -0
- data/sig/user.rbs +188 -0
- data/sig/user_policy.rbs +58 -0
- data/sig/virtual_mfa_device.rbs +54 -0
- data/sig/waiters.rbs +53 -0
- metadata +34 -8
data/sig/policy.rbs
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module IAM
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html
|
11
|
+
class Policy
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#initialize-instance_method
|
13
|
+
def initialize: (String arn, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (arn: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#arn-instance_method
|
18
|
+
def arn: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#policy_name-instance_method
|
21
|
+
def policy_name: () -> ::String
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#policy_id-instance_method
|
24
|
+
def policy_id: () -> ::String
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#path-instance_method
|
27
|
+
def path: () -> ::String
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#default_version_id-instance_method
|
30
|
+
def default_version_id: () -> ::String
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attachment_count-instance_method
|
33
|
+
def attachment_count: () -> ::Integer
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#permissions_boundary_usage_count-instance_method
|
36
|
+
def permissions_boundary_usage_count: () -> ::Integer
|
37
|
+
|
38
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#is_attachable-instance_method
|
39
|
+
def is_attachable: () -> bool
|
40
|
+
|
41
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#description-instance_method
|
42
|
+
def description: () -> ::String
|
43
|
+
|
44
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#create_date-instance_method
|
45
|
+
def create_date: () -> ::Time
|
46
|
+
|
47
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#update_date-instance_method
|
48
|
+
def update_date: () -> ::Time
|
49
|
+
|
50
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#tags-instance_method
|
51
|
+
def tags: () -> ::Array[Types::Tag]
|
52
|
+
|
53
|
+
def client: () -> Client
|
54
|
+
|
55
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#load-instance_method
|
56
|
+
def load: () -> self
|
57
|
+
alias reload load
|
58
|
+
|
59
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#data-instance_method
|
60
|
+
def data: () -> Types::Policy
|
61
|
+
|
62
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#data_loaded?-instance_method
|
63
|
+
def data_loaded?: () -> bool
|
64
|
+
|
65
|
+
|
66
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attach_group-instance_method
|
67
|
+
def attach_group: (
|
68
|
+
group_name: ::String
|
69
|
+
) -> ::Aws::EmptyStructure
|
70
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
71
|
+
|
72
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attach_role-instance_method
|
73
|
+
def attach_role: (
|
74
|
+
role_name: ::String
|
75
|
+
) -> ::Aws::EmptyStructure
|
76
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
77
|
+
|
78
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attach_user-instance_method
|
79
|
+
def attach_user: (
|
80
|
+
user_name: ::String
|
81
|
+
) -> ::Aws::EmptyStructure
|
82
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
83
|
+
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#create_version-instance_method
|
85
|
+
def create_version: (
|
86
|
+
policy_document: ::String,
|
87
|
+
?set_as_default: bool
|
88
|
+
) -> PolicyVersion
|
89
|
+
| (?Hash[Symbol, untyped]) -> PolicyVersion
|
90
|
+
|
91
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#delete-instance_method
|
92
|
+
def delete: (
|
93
|
+
) -> ::Aws::EmptyStructure
|
94
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
95
|
+
|
96
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#detach_group-instance_method
|
97
|
+
def detach_group: (
|
98
|
+
group_name: ::String
|
99
|
+
) -> ::Aws::EmptyStructure
|
100
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
101
|
+
|
102
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#detach_role-instance_method
|
103
|
+
def detach_role: (
|
104
|
+
role_name: ::String
|
105
|
+
) -> ::Aws::EmptyStructure
|
106
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
107
|
+
|
108
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#detach_user-instance_method
|
109
|
+
def detach_user: (
|
110
|
+
user_name: ::String
|
111
|
+
) -> ::Aws::EmptyStructure
|
112
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
113
|
+
|
114
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attached_groups-instance_method
|
115
|
+
def attached_groups: (
|
116
|
+
?path_prefix: ::String,
|
117
|
+
?policy_usage_filter: ("PermissionsPolicy" | "PermissionsBoundary")
|
118
|
+
) -> Group::Collection
|
119
|
+
| (?Hash[Symbol, untyped]) -> Group::Collection
|
120
|
+
|
121
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attached_roles-instance_method
|
122
|
+
def attached_roles: (
|
123
|
+
?path_prefix: ::String,
|
124
|
+
?policy_usage_filter: ("PermissionsPolicy" | "PermissionsBoundary")
|
125
|
+
) -> Role::Collection
|
126
|
+
| (?Hash[Symbol, untyped]) -> Role::Collection
|
127
|
+
|
128
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#attached_users-instance_method
|
129
|
+
def attached_users: (
|
130
|
+
?path_prefix: ::String,
|
131
|
+
?policy_usage_filter: ("PermissionsPolicy" | "PermissionsBoundary")
|
132
|
+
) -> User::Collection
|
133
|
+
| (?Hash[Symbol, untyped]) -> User::Collection
|
134
|
+
|
135
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#default_version-instance_method
|
136
|
+
def default_version: () -> PolicyVersion?
|
137
|
+
|
138
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Policy.html#versions-instance_method
|
139
|
+
def versions: (
|
140
|
+
) -> PolicyVersion::Collection
|
141
|
+
| (?Hash[Symbol, untyped]) -> PolicyVersion::Collection
|
142
|
+
|
143
|
+
class Collection < ::Aws::Resources::Collection[Policy]
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module IAM
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html
|
11
|
+
class PolicyVersion
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#initialize-instance_method
|
13
|
+
def initialize: (String arn, String version_id, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (arn: String, version_id: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#arn-instance_method
|
18
|
+
def arn: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#version_id-instance_method
|
21
|
+
def version_id: () -> String
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#document-instance_method
|
24
|
+
def document: () -> ::String
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#is_default_version-instance_method
|
27
|
+
def is_default_version: () -> bool
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#create_date-instance_method
|
30
|
+
def create_date: () -> ::Time
|
31
|
+
|
32
|
+
def client: () -> Client
|
33
|
+
|
34
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#load-instance_method
|
35
|
+
def load: () -> self
|
36
|
+
alias reload load
|
37
|
+
|
38
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#data-instance_method
|
39
|
+
def data: () -> Types::PolicyVersion
|
40
|
+
|
41
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#data_loaded?-instance_method
|
42
|
+
def data_loaded?: () -> bool
|
43
|
+
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#delete-instance_method
|
46
|
+
def delete: (
|
47
|
+
) -> ::Aws::EmptyStructure
|
48
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
49
|
+
|
50
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/PolicyVersion.html#set_as_default-instance_method
|
51
|
+
def set_as_default: (
|
52
|
+
) -> ::Aws::EmptyStructure
|
53
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
54
|
+
|
55
|
+
class Collection < ::Aws::Resources::Collection[PolicyVersion]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,304 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module IAM
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?active_endpoint_cache: bool,
|
19
|
+
?adaptive_retry_wait_to_fill: bool,
|
20
|
+
?client_side_monitoring: bool,
|
21
|
+
?client_side_monitoring_client_id: String,
|
22
|
+
?client_side_monitoring_host: String,
|
23
|
+
?client_side_monitoring_port: Integer,
|
24
|
+
?client_side_monitoring_publisher: untyped,
|
25
|
+
?convert_params: bool,
|
26
|
+
?correct_clock_skew: bool,
|
27
|
+
?defaults_mode: String,
|
28
|
+
?disable_host_prefix_injection: bool,
|
29
|
+
?disable_request_compression: bool,
|
30
|
+
?endpoint: String,
|
31
|
+
?endpoint_cache_max_entries: Integer,
|
32
|
+
?endpoint_cache_max_threads: Integer,
|
33
|
+
?endpoint_cache_poll_interval: Integer,
|
34
|
+
?endpoint_discovery: bool,
|
35
|
+
?ignore_configured_endpoint_urls: bool,
|
36
|
+
?log_formatter: untyped,
|
37
|
+
?log_level: Symbol,
|
38
|
+
?logger: untyped,
|
39
|
+
?max_attempts: Integer,
|
40
|
+
?profile: String,
|
41
|
+
?request_min_compression_size_bytes: Integer,
|
42
|
+
?retry_backoff: Proc,
|
43
|
+
?retry_base_delay: Float,
|
44
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
45
|
+
?retry_limit: Integer,
|
46
|
+
?retry_max_delay: Integer,
|
47
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
48
|
+
?sdk_ua_app_id: String,
|
49
|
+
?secret_access_key: String,
|
50
|
+
?session_token: String,
|
51
|
+
?stub_responses: untyped,
|
52
|
+
?token_provider: untyped,
|
53
|
+
?use_dualstack_endpoint: bool,
|
54
|
+
?use_fips_endpoint: bool,
|
55
|
+
?validate_params: bool,
|
56
|
+
?endpoint_provider: untyped,
|
57
|
+
?http_proxy: String,
|
58
|
+
?http_open_timeout: (Float | Integer),
|
59
|
+
?http_read_timeout: (Float | Integer),
|
60
|
+
?http_idle_timeout: (Float | Integer),
|
61
|
+
?http_continue_timeout: (Float | Integer),
|
62
|
+
?ssl_timeout: (Float | Integer | nil),
|
63
|
+
?http_wire_trace: bool,
|
64
|
+
?ssl_verify_peer: bool,
|
65
|
+
?ssl_ca_bundle: String,
|
66
|
+
?ssl_ca_directory: String,
|
67
|
+
?ssl_ca_store: String,
|
68
|
+
?on_chunk_received: Proc,
|
69
|
+
?on_chunk_sent: Proc,
|
70
|
+
?raise_response_errors: bool
|
71
|
+
) -> void
|
72
|
+
| (?Hash[Symbol, untyped]) -> void
|
73
|
+
|
74
|
+
def client: () -> Client
|
75
|
+
|
76
|
+
|
77
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#change_password-instance_method
|
78
|
+
def change_password: (
|
79
|
+
old_password: ::String,
|
80
|
+
new_password: ::String
|
81
|
+
) -> ::Aws::EmptyStructure
|
82
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
83
|
+
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_account_alias-instance_method
|
85
|
+
def create_account_alias: (
|
86
|
+
account_alias: ::String
|
87
|
+
) -> ::Aws::EmptyStructure
|
88
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
89
|
+
|
90
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_account_password_policy-instance_method
|
91
|
+
def create_account_password_policy: (
|
92
|
+
?minimum_password_length: ::Integer,
|
93
|
+
?require_symbols: bool,
|
94
|
+
?require_numbers: bool,
|
95
|
+
?require_uppercase_characters: bool,
|
96
|
+
?require_lowercase_characters: bool,
|
97
|
+
?allow_users_to_change_password: bool,
|
98
|
+
?max_password_age: ::Integer,
|
99
|
+
?password_reuse_prevention: ::Integer,
|
100
|
+
?hard_expiry: bool
|
101
|
+
) -> AccountPasswordPolicy
|
102
|
+
| (?Hash[Symbol, untyped]) -> AccountPasswordPolicy
|
103
|
+
|
104
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_group-instance_method
|
105
|
+
def create_group: (
|
106
|
+
?path: ::String,
|
107
|
+
group_name: ::String
|
108
|
+
) -> Group
|
109
|
+
| (?Hash[Symbol, untyped]) -> Group
|
110
|
+
|
111
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_instance_profile-instance_method
|
112
|
+
def create_instance_profile: (
|
113
|
+
instance_profile_name: ::String,
|
114
|
+
?path: ::String,
|
115
|
+
?tags: Array[
|
116
|
+
{
|
117
|
+
key: ::String,
|
118
|
+
value: ::String
|
119
|
+
},
|
120
|
+
]
|
121
|
+
) -> InstanceProfile
|
122
|
+
| (?Hash[Symbol, untyped]) -> InstanceProfile
|
123
|
+
|
124
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_policy-instance_method
|
125
|
+
def create_policy: (
|
126
|
+
policy_name: ::String,
|
127
|
+
?path: ::String,
|
128
|
+
policy_document: ::String,
|
129
|
+
?description: ::String,
|
130
|
+
?tags: Array[
|
131
|
+
{
|
132
|
+
key: ::String,
|
133
|
+
value: ::String
|
134
|
+
},
|
135
|
+
]
|
136
|
+
) -> Policy
|
137
|
+
| (?Hash[Symbol, untyped]) -> Policy
|
138
|
+
|
139
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_role-instance_method
|
140
|
+
def create_role: (
|
141
|
+
?path: ::String,
|
142
|
+
role_name: ::String,
|
143
|
+
assume_role_policy_document: ::String,
|
144
|
+
?description: ::String,
|
145
|
+
?max_session_duration: ::Integer,
|
146
|
+
?permissions_boundary: ::String,
|
147
|
+
?tags: Array[
|
148
|
+
{
|
149
|
+
key: ::String,
|
150
|
+
value: ::String
|
151
|
+
},
|
152
|
+
]
|
153
|
+
) -> Role
|
154
|
+
| (?Hash[Symbol, untyped]) -> Role
|
155
|
+
|
156
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_saml_provider-instance_method
|
157
|
+
def create_saml_provider: (
|
158
|
+
saml_metadata_document: ::String,
|
159
|
+
name: ::String,
|
160
|
+
?tags: Array[
|
161
|
+
{
|
162
|
+
key: ::String,
|
163
|
+
value: ::String
|
164
|
+
},
|
165
|
+
]
|
166
|
+
) -> SamlProvider
|
167
|
+
| (?Hash[Symbol, untyped]) -> SamlProvider
|
168
|
+
|
169
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_server_certificate-instance_method
|
170
|
+
def create_server_certificate: (
|
171
|
+
?path: ::String,
|
172
|
+
server_certificate_name: ::String,
|
173
|
+
certificate_body: ::String,
|
174
|
+
private_key: ::String,
|
175
|
+
?certificate_chain: ::String,
|
176
|
+
?tags: Array[
|
177
|
+
{
|
178
|
+
key: ::String,
|
179
|
+
value: ::String
|
180
|
+
},
|
181
|
+
]
|
182
|
+
) -> ServerCertificate
|
183
|
+
| (?Hash[Symbol, untyped]) -> ServerCertificate
|
184
|
+
|
185
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_signing_certificate-instance_method
|
186
|
+
def create_signing_certificate: (
|
187
|
+
?user_name: ::String,
|
188
|
+
certificate_body: ::String
|
189
|
+
) -> SigningCertificate
|
190
|
+
| (?Hash[Symbol, untyped]) -> SigningCertificate
|
191
|
+
|
192
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_user-instance_method
|
193
|
+
def create_user: (
|
194
|
+
?path: ::String,
|
195
|
+
user_name: ::String,
|
196
|
+
?permissions_boundary: ::String,
|
197
|
+
?tags: Array[
|
198
|
+
{
|
199
|
+
key: ::String,
|
200
|
+
value: ::String
|
201
|
+
},
|
202
|
+
]
|
203
|
+
) -> User
|
204
|
+
| (?Hash[Symbol, untyped]) -> User
|
205
|
+
|
206
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#create_virtual_mfa_device-instance_method
|
207
|
+
def create_virtual_mfa_device: (
|
208
|
+
?path: ::String,
|
209
|
+
virtual_mfa_device_name: ::String,
|
210
|
+
?tags: Array[
|
211
|
+
{
|
212
|
+
key: ::String,
|
213
|
+
value: ::String
|
214
|
+
},
|
215
|
+
]
|
216
|
+
) -> VirtualMfaDevice
|
217
|
+
| (?Hash[Symbol, untyped]) -> VirtualMfaDevice
|
218
|
+
|
219
|
+
|
220
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#account_password_policy-instance_method
|
221
|
+
def account_password_policy: () -> AccountPasswordPolicy
|
222
|
+
|
223
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#account_summary-instance_method
|
224
|
+
def account_summary: () -> AccountSummary
|
225
|
+
|
226
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#current_user-instance_method
|
227
|
+
def current_user: () -> CurrentUser
|
228
|
+
|
229
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#group-instance_method
|
230
|
+
def group: (String name) -> Group
|
231
|
+
|
232
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#groups-instance_method
|
233
|
+
def groups: (
|
234
|
+
?path_prefix: ::String
|
235
|
+
) -> Group::Collection
|
236
|
+
| (?Hash[Symbol, untyped]) -> Group::Collection
|
237
|
+
|
238
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#instance_profile-instance_method
|
239
|
+
def instance_profile: (String name) -> InstanceProfile
|
240
|
+
|
241
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#instance_profiles-instance_method
|
242
|
+
def instance_profiles: (
|
243
|
+
?path_prefix: ::String
|
244
|
+
) -> InstanceProfile::Collection
|
245
|
+
| (?Hash[Symbol, untyped]) -> InstanceProfile::Collection
|
246
|
+
|
247
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#policies-instance_method
|
248
|
+
def policies: (
|
249
|
+
?scope: ("All" | "AWS" | "Local"),
|
250
|
+
?only_attached: bool,
|
251
|
+
?path_prefix: ::String,
|
252
|
+
?policy_usage_filter: ("PermissionsPolicy" | "PermissionsBoundary")
|
253
|
+
) -> Policy::Collection
|
254
|
+
| (?Hash[Symbol, untyped]) -> Policy::Collection
|
255
|
+
|
256
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#policy-instance_method
|
257
|
+
def policy: (String arn) -> Policy
|
258
|
+
|
259
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#role-instance_method
|
260
|
+
def role: (String name) -> Role
|
261
|
+
|
262
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#roles-instance_method
|
263
|
+
def roles: (
|
264
|
+
?path_prefix: ::String
|
265
|
+
) -> Role::Collection
|
266
|
+
| (?Hash[Symbol, untyped]) -> Role::Collection
|
267
|
+
|
268
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#saml_provider-instance_method
|
269
|
+
def saml_provider: (String arn) -> SamlProvider
|
270
|
+
|
271
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#saml_providers-instance_method
|
272
|
+
def saml_providers: (
|
273
|
+
) -> SamlProvider::Collection
|
274
|
+
| (?Hash[Symbol, untyped]) -> SamlProvider::Collection
|
275
|
+
|
276
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#server_certificate-instance_method
|
277
|
+
def server_certificate: (String name) -> ServerCertificate
|
278
|
+
|
279
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#server_certificates-instance_method
|
280
|
+
def server_certificates: (
|
281
|
+
?path_prefix: ::String
|
282
|
+
) -> ServerCertificate::Collection
|
283
|
+
| (?Hash[Symbol, untyped]) -> ServerCertificate::Collection
|
284
|
+
|
285
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#user-instance_method
|
286
|
+
def user: (String name) -> User
|
287
|
+
|
288
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#users-instance_method
|
289
|
+
def users: (
|
290
|
+
?path_prefix: ::String
|
291
|
+
) -> User::Collection
|
292
|
+
| (?Hash[Symbol, untyped]) -> User::Collection
|
293
|
+
|
294
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#virtual_mfa_device-instance_method
|
295
|
+
def virtual_mfa_device: (String serial_number) -> VirtualMfaDevice
|
296
|
+
|
297
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Resource.html#virtual_mfa_devices-instance_method
|
298
|
+
def virtual_mfa_devices: (
|
299
|
+
?assignment_status: ("Assigned" | "Unassigned" | "Any")
|
300
|
+
) -> VirtualMfaDevice::Collection
|
301
|
+
| (?Hash[Symbol, untyped]) -> VirtualMfaDevice::Collection
|
302
|
+
end
|
303
|
+
end
|
304
|
+
end
|
data/sig/role.rbs
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module IAM
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html
|
11
|
+
class Role
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#initialize-instance_method
|
13
|
+
def initialize: (String name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#name-instance_method
|
18
|
+
def name: () -> String
|
19
|
+
alias role_name name
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#path-instance_method
|
22
|
+
def path: () -> ::String
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#role_id-instance_method
|
25
|
+
def role_id: () -> ::String
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#arn-instance_method
|
28
|
+
def arn: () -> ::String
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#create_date-instance_method
|
31
|
+
def create_date: () -> ::Time
|
32
|
+
|
33
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#assume_role_policy_document-instance_method
|
34
|
+
def assume_role_policy_document: () -> ::String
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#description-instance_method
|
37
|
+
def description: () -> ::String
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#max_session_duration-instance_method
|
40
|
+
def max_session_duration: () -> ::Integer
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#permissions_boundary-instance_method
|
43
|
+
def permissions_boundary: () -> Types::AttachedPermissionsBoundary
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#tags-instance_method
|
46
|
+
def tags: () -> ::Array[Types::Tag]
|
47
|
+
|
48
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#role_last_used-instance_method
|
49
|
+
def role_last_used: () -> Types::RoleLastUsed
|
50
|
+
|
51
|
+
def client: () -> Client
|
52
|
+
|
53
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#load-instance_method
|
54
|
+
def load: () -> self
|
55
|
+
alias reload load
|
56
|
+
|
57
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#data-instance_method
|
58
|
+
def data: () -> Types::Role
|
59
|
+
|
60
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#data_loaded?-instance_method
|
61
|
+
def data_loaded?: () -> bool
|
62
|
+
|
63
|
+
|
64
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#attach_policy-instance_method
|
65
|
+
def attach_policy: (
|
66
|
+
policy_arn: ::String
|
67
|
+
) -> ::Aws::EmptyStructure
|
68
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
69
|
+
|
70
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#delete-instance_method
|
71
|
+
def delete: (
|
72
|
+
) -> ::Aws::EmptyStructure
|
73
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
74
|
+
|
75
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#detach_policy-instance_method
|
76
|
+
def detach_policy: (
|
77
|
+
policy_arn: ::String
|
78
|
+
) -> ::Aws::EmptyStructure
|
79
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
80
|
+
|
81
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#assume_role_policy-instance_method
|
82
|
+
def assume_role_policy: () -> AssumeRolePolicy
|
83
|
+
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#attached_policies-instance_method
|
85
|
+
def attached_policies: (
|
86
|
+
?path_prefix: ::String
|
87
|
+
) -> Policy::Collection
|
88
|
+
| (?Hash[Symbol, untyped]) -> Policy::Collection
|
89
|
+
|
90
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#instance_profiles-instance_method
|
91
|
+
def instance_profiles: (
|
92
|
+
) -> InstanceProfile::Collection
|
93
|
+
| (?Hash[Symbol, untyped]) -> InstanceProfile::Collection
|
94
|
+
|
95
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#policies-instance_method
|
96
|
+
def policies: (
|
97
|
+
) -> RolePolicy::Collection
|
98
|
+
| (?Hash[Symbol, untyped]) -> RolePolicy::Collection
|
99
|
+
|
100
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Role.html#policy-instance_method
|
101
|
+
def policy: (String name) -> RolePolicy
|
102
|
+
|
103
|
+
class Collection < ::Aws::Resources::Collection[Role]
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|