aws-sdk 1.8.5 → 1.9.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 +7 -0
- data/.yardopts +1 -0
- data/README.rdoc +8 -0
- data/lib/aws-sdk.rb +39 -35
- data/lib/aws/api_config/CloudFront-2012-07-01.yml +2398 -0
- data/lib/aws/api_config/DirectConnect-2012-10-25.yml +475 -0
- data/lib/aws/api_config/DynamoDB-2011-12-05.yml +8 -0
- data/lib/aws/api_config/DynamoDB-2012-08-10.yml +1516 -0
- data/lib/aws/api_config/OpsWorks-2013-02-18.yml +2 -2
- data/lib/aws/auto_scaling.rb +44 -44
- data/lib/aws/auto_scaling/activity.rb +1 -1
- data/lib/aws/auto_scaling/activity_collection.rb +14 -15
- data/lib/aws/auto_scaling/client.rb +277 -277
- data/lib/aws/auto_scaling/config.rb +1 -1
- data/lib/aws/auto_scaling/group.rb +35 -36
- data/lib/aws/auto_scaling/group_collection.rb +10 -10
- data/lib/aws/auto_scaling/group_options.rb +19 -19
- data/lib/aws/auto_scaling/instance.rb +27 -27
- data/lib/aws/auto_scaling/instance_collection.rb +10 -10
- data/lib/aws/auto_scaling/launch_configuration.rb +3 -3
- data/lib/aws/auto_scaling/launch_configuration_collection.rb +1 -1
- data/lib/aws/auto_scaling/notification_configuration.rb +2 -2
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +37 -38
- data/lib/aws/auto_scaling/scaling_policy.rb +3 -3
- data/lib/aws/auto_scaling/scaling_policy_collection.rb +6 -6
- data/lib/aws/auto_scaling/scaling_policy_options.rb +8 -7
- data/lib/aws/auto_scaling/scheduled_action.rb +3 -3
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +28 -28
- data/lib/aws/auto_scaling/tag_collection.rb +30 -28
- data/lib/aws/cloud_formation.rb +95 -94
- data/lib/aws/cloud_formation/client.rb +136 -133
- data/lib/aws/cloud_formation/config.rb +1 -1
- data/lib/aws/cloud_formation/stack.rb +37 -37
- data/lib/aws/cloud_formation/stack_collection.rb +28 -27
- data/lib/aws/cloud_formation/stack_event.rb +9 -11
- data/lib/aws/cloud_formation/stack_output.rb +1 -1
- data/lib/aws/cloud_formation/stack_resource.rb +6 -6
- data/lib/aws/cloud_formation/stack_resource_collection.rb +11 -12
- data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +11 -11
- data/lib/aws/cloud_formation/stack_summary_collection.rb +39 -39
- data/lib/aws/cloud_front.rb +21 -21
- data/lib/aws/cloud_front/client.rb +853 -652
- data/lib/aws/cloud_front/request.rb +3 -0
- data/lib/aws/cloud_search.rb +22 -22
- data/lib/aws/cloud_search/client.rb +322 -315
- data/lib/aws/cloud_search/config.rb +1 -1
- data/lib/aws/cloud_watch.rb +39 -39
- data/lib/aws/cloud_watch/alarm.rb +55 -37
- data/lib/aws/cloud_watch/alarm_collection.rb +18 -18
- data/lib/aws/cloud_watch/alarm_history_item_collection.rb +2 -2
- data/lib/aws/cloud_watch/client.rb +360 -146
- data/lib/aws/cloud_watch/config.rb +1 -1
- data/lib/aws/cloud_watch/metric.rb +15 -15
- data/lib/aws/cloud_watch/metric_alarm_collection.rb +17 -17
- data/lib/aws/cloud_watch/metric_collection.rb +16 -16
- data/lib/aws/cloud_watch/metric_statistics.rb +11 -11
- data/lib/aws/core.rb +243 -225
- data/lib/aws/core/async_handle.rb +13 -13
- data/lib/aws/core/cacheable.rb +14 -15
- data/lib/aws/core/client.rb +40 -15
- data/lib/aws/core/collection.rb +42 -46
- data/lib/aws/core/collection/with_limit_and_next_token.rb +1 -1
- data/lib/aws/core/collection/with_next_token.rb +1 -1
- data/lib/aws/core/configuration.rb +97 -133
- data/lib/aws/core/credential_providers.rb +16 -16
- data/lib/aws/core/data.rb +23 -23
- data/lib/aws/core/http/connection_pool.rb +348 -0
- data/lib/aws/core/http/net_http_handler.rb +17 -26
- data/lib/aws/core/http/patch.rb +102 -0
- data/lib/aws/core/http/request.rb +13 -19
- data/lib/aws/core/http/response.rb +2 -2
- data/lib/aws/core/lazy_error_classes.rb +17 -17
- data/lib/aws/core/log_formatter.rb +70 -104
- data/lib/aws/core/options/json_serializer.rb +1 -1
- data/lib/aws/core/options/validator.rb +4 -4
- data/lib/aws/core/page_result.rb +8 -8
- data/lib/aws/core/policy.rb +49 -49
- data/lib/aws/core/region.rb +72 -0
- data/lib/aws/core/region_collection.rb +106 -0
- data/lib/aws/core/resource.rb +5 -5
- data/lib/aws/core/response.rb +20 -17
- data/lib/aws/core/rest_request_builder.rb +4 -4
- data/lib/aws/core/service_interface.rb +24 -2
- data/lib/aws/core/signature/version_3.rb +2 -2
- data/lib/aws/core/uri_escape.rb +1 -1
- data/lib/aws/core/xml/frame_stack.rb +1 -1
- data/lib/aws/core/xml/grammar.rb +3 -4
- data/lib/aws/core/xml/sax_handlers/libxml.rb +2 -2
- data/lib/aws/core/xml/sax_handlers/nokogiri.rb +3 -3
- data/lib/aws/core/xml/sax_handlers/rexml.rb +5 -5
- data/lib/aws/core/xml/stub.rb +9 -9
- data/lib/aws/data_pipeline.rb +21 -21
- data/lib/aws/data_pipeline/client.rb +189 -133
- data/lib/aws/data_pipeline/config.rb +1 -1
- data/lib/aws/direct_connect.rb +74 -0
- data/lib/aws/direct_connect/client.rb +253 -0
- data/lib/aws/direct_connect/config.rb +18 -0
- data/lib/aws/direct_connect/errors.rb +22 -0
- data/lib/aws/direct_connect/request.rb +27 -0
- data/lib/aws/dynamo_db.rb +71 -69
- data/lib/aws/dynamo_db/attribute_collection.rb +53 -58
- data/lib/aws/dynamo_db/batch_get.rb +23 -23
- data/lib/aws/dynamo_db/batch_write.rb +43 -43
- data/lib/aws/dynamo_db/binary.rb +9 -9
- data/lib/aws/dynamo_db/client.rb +494 -509
- data/lib/aws/dynamo_db/client_base.rb +91 -0
- data/lib/aws/dynamo_db/client_v2.rb +825 -0
- data/lib/aws/dynamo_db/config.rb +1 -1
- data/lib/aws/dynamo_db/item.rb +10 -10
- data/lib/aws/dynamo_db/item_collection.rb +75 -75
- data/lib/aws/dynamo_db/table.rb +85 -85
- data/lib/aws/dynamo_db/table_collection.rb +13 -13
- data/lib/aws/ec2.rb +132 -142
- data/lib/aws/ec2/attachment.rb +31 -36
- data/lib/aws/ec2/attachment_collection.rb +1 -1
- data/lib/aws/ec2/availability_zone.rb +4 -4
- data/lib/aws/ec2/client.rb +2272 -2125
- data/lib/aws/ec2/config.rb +1 -1
- data/lib/aws/ec2/customer_gateway.rb +6 -6
- data/lib/aws/ec2/customer_gateway_collection.rb +6 -6
- data/lib/aws/ec2/dhcp_options.rb +3 -3
- data/lib/aws/ec2/dhcp_options_collection.rb +10 -10
- data/lib/aws/ec2/elastic_ip.rb +15 -15
- data/lib/aws/ec2/elastic_ip_collection.rb +11 -15
- data/lib/aws/ec2/export_task.rb +4 -4
- data/lib/aws/ec2/export_task_collection.rb +11 -11
- data/lib/aws/ec2/filtered_collection.rb +6 -8
- data/lib/aws/ec2/image.rb +46 -40
- data/lib/aws/ec2/image_collection.rb +44 -52
- data/lib/aws/ec2/instance.rb +64 -62
- data/lib/aws/ec2/instance_collection.rb +47 -50
- data/lib/aws/ec2/internet_gateway.rb +6 -6
- data/lib/aws/ec2/internet_gateway/attachment.rb +13 -13
- data/lib/aws/ec2/internet_gateway_collection.rb +3 -3
- data/lib/aws/ec2/key_pair.rb +3 -3
- data/lib/aws/ec2/key_pair_collection.rb +12 -12
- data/lib/aws/ec2/network_acl.rb +39 -39
- data/lib/aws/ec2/network_acl/association.rb +2 -2
- data/lib/aws/ec2/network_acl/entry.rb +22 -22
- data/lib/aws/ec2/network_acl_collection.rb +2 -2
- data/lib/aws/ec2/network_interface.rb +13 -4
- data/lib/aws/ec2/network_interface/attachment.rb +3 -3
- data/lib/aws/ec2/network_interface_collection.rb +5 -5
- data/lib/aws/ec2/permission_collection.rb +1 -1
- data/lib/aws/ec2/region.rb +6 -6
- data/lib/aws/ec2/region_collection.rb +1 -1
- data/lib/aws/ec2/reserved_instances_collection.rb +2 -2
- data/lib/aws/ec2/reserved_instances_offering_collection.rb +2 -2
- data/lib/aws/ec2/resource_tag_collection.rb +5 -5
- data/lib/aws/ec2/route_table.rb +14 -14
- data/lib/aws/ec2/route_table/association.rb +22 -22
- data/lib/aws/ec2/route_table/route.rb +8 -8
- data/lib/aws/ec2/route_table_collection.rb +3 -3
- data/lib/aws/ec2/security_group.rb +39 -41
- data/lib/aws/ec2/security_group_collection.rb +19 -21
- data/lib/aws/ec2/snapshot.rb +3 -3
- data/lib/aws/ec2/snapshot_collection.rb +11 -12
- data/lib/aws/ec2/subnet.rb +2 -2
- data/lib/aws/ec2/subnet_collection.rb +17 -17
- data/lib/aws/ec2/tag_collection.rb +1 -1
- data/lib/aws/ec2/tagged_collection.rb +7 -7
- data/lib/aws/ec2/tagged_item.rb +10 -10
- data/lib/aws/ec2/volume.rb +16 -16
- data/lib/aws/ec2/volume_collection.rb +9 -12
- data/lib/aws/ec2/vpc.rb +6 -6
- data/lib/aws/ec2/vpc_collection.rb +10 -10
- data/lib/aws/ec2/vpn_connection.rb +4 -4
- data/lib/aws/ec2/vpn_connection/telemetry.rb +1 -1
- data/lib/aws/ec2/vpn_connection_collection.rb +6 -6
- data/lib/aws/ec2/vpn_gateway.rb +2 -2
- data/lib/aws/ec2/vpn_gateway_collection.rb +5 -5
- data/lib/aws/elastic_beanstalk.rb +12 -12
- data/lib/aws/elastic_beanstalk/client.rb +376 -368
- data/lib/aws/elastic_beanstalk/config.rb +1 -1
- data/lib/aws/elastic_transcoder.rb +5 -5
- data/lib/aws/elastic_transcoder/client.rb +283 -283
- data/lib/aws/elastic_transcoder/config.rb +1 -1
- data/lib/aws/elasticache.rb +12 -12
- data/lib/aws/elasticache/client.rb +484 -479
- data/lib/aws/elasticache/config.rb +1 -1
- data/lib/aws/elb.rb +23 -23
- data/lib/aws/elb/availability_zone_collection.rb +34 -34
- data/lib/aws/elb/backend_server_policy_collection.rb +24 -24
- data/lib/aws/elb/client.rb +153 -153
- data/lib/aws/elb/config.rb +1 -1
- data/lib/aws/elb/errors.rb +1 -1
- data/lib/aws/elb/instance_collection.rb +20 -25
- data/lib/aws/elb/listener.rb +3 -3
- data/lib/aws/elb/listener_collection.rb +8 -8
- data/lib/aws/elb/load_balancer.rb +15 -16
- data/lib/aws/elb/load_balancer_collection.rb +36 -24
- data/lib/aws/elb/load_balancer_policy.rb +1 -1
- data/lib/aws/elb/load_balancer_policy_collection.rb +5 -5
- data/lib/aws/emr.rb +28 -26
- data/lib/aws/emr/client.rb +165 -149
- data/lib/aws/emr/config.rb +1 -1
- data/lib/aws/emr/instance_group.rb +1 -1
- data/lib/aws/emr/instance_group_collection.rb +1 -1
- data/lib/aws/emr/job_flow.rb +27 -26
- data/lib/aws/emr/job_flow_collection.rb +34 -34
- data/lib/aws/errors.rb +7 -7
- data/lib/aws/glacier.rb +21 -21
- data/lib/aws/glacier/archive_collection.rb +2 -2
- data/lib/aws/glacier/client.rb +139 -140
- data/lib/aws/glacier/config.rb +1 -1
- data/lib/aws/glacier/vault.rb +2 -2
- data/lib/aws/glacier/vault_collection.rb +1 -1
- data/lib/aws/iam.rb +133 -144
- data/lib/aws/iam/access_key.rb +17 -17
- data/lib/aws/iam/access_key_collection.rb +22 -22
- data/lib/aws/iam/account_alias_collection.rb +2 -2
- data/lib/aws/iam/client.rb +429 -420
- data/lib/aws/iam/collection.rb +1 -1
- data/lib/aws/iam/config.rb +2 -2
- data/lib/aws/iam/group.rb +8 -8
- data/lib/aws/iam/group_collection.rb +16 -16
- data/lib/aws/iam/group_policy_collection.rb +6 -6
- data/lib/aws/iam/group_user_collection.rb +3 -3
- data/lib/aws/iam/mfa_device.rb +1 -1
- data/lib/aws/iam/mfa_device_collection.rb +9 -9
- data/lib/aws/iam/policy_collection.rb +4 -4
- data/lib/aws/iam/resource.rb +2 -2
- data/lib/aws/iam/server_certificate.rb +1 -1
- data/lib/aws/iam/server_certificate_collection.rb +15 -15
- data/lib/aws/iam/signing_certificate.rb +29 -29
- data/lib/aws/iam/signing_certificate_collection.rb +23 -23
- data/lib/aws/iam/user.rb +33 -38
- data/lib/aws/iam/user_collection.rb +27 -27
- data/lib/aws/iam/user_group_collection.rb +3 -3
- data/lib/aws/iam/user_policy_collection.rb +6 -6
- data/lib/aws/iam/virtual_mfa_device.rb +12 -12
- data/lib/aws/iam/virtual_mfa_device_collection.rb +4 -4
- data/lib/aws/import_export.rb +22 -21
- data/lib/aws/import_export/client.rb +47 -43
- data/lib/aws/ops_works.rb +5 -5
- data/lib/aws/ops_works/client.rb +484 -438
- data/lib/aws/ops_works/config.rb +1 -1
- data/lib/aws/rails.rb +34 -34
- data/lib/aws/rds.rb +18 -18
- data/lib/aws/rds/client.rb +1286 -1277
- data/lib/aws/rds/config.rb +1 -1
- data/lib/aws/rds/db_instance.rb +15 -4
- data/lib/aws/rds/db_snapshot.rb +1 -1
- data/lib/aws/record.rb +50 -24
- data/lib/aws/record/abstract_base.rb +52 -60
- data/lib/aws/record/attributes.rb +79 -79
- data/lib/aws/record/conversion.rb +1 -1
- data/lib/aws/record/dirty_tracking.rb +69 -67
- data/lib/aws/record/errors.rb +21 -21
- data/lib/aws/record/exceptions.rb +2 -2
- data/lib/aws/record/hash_model.rb +20 -21
- data/lib/aws/record/hash_model/attributes.rb +13 -15
- data/lib/aws/record/hash_model/finder_methods.rb +46 -46
- data/lib/aws/record/hash_model/scope.rb +31 -31
- data/lib/aws/record/model.rb +136 -136
- data/lib/aws/record/model/attributes.rb +57 -59
- data/lib/aws/record/model/finder_methods.rb +67 -67
- data/lib/aws/record/model/scope.rb +48 -49
- data/lib/aws/record/naming.rb +1 -1
- data/lib/aws/record/scope.rb +23 -19
- data/lib/aws/record/validations.rb +253 -271
- data/lib/aws/record/validator.rb +3 -3
- data/lib/aws/record/validators/acceptance.rb +1 -3
- data/lib/aws/record/validators/block.rb +1 -3
- data/lib/aws/record/validators/confirmation.rb +1 -3
- data/lib/aws/record/validators/count.rb +2 -4
- data/lib/aws/record/validators/exclusion.rb +2 -4
- data/lib/aws/record/validators/format.rb +2 -4
- data/lib/aws/record/validators/inclusion.rb +1 -3
- data/lib/aws/record/validators/length.rb +5 -7
- data/lib/aws/record/validators/method.rb +1 -3
- data/lib/aws/record/validators/numericality.rb +6 -8
- data/lib/aws/record/validators/presence.rb +1 -3
- data/lib/aws/redshift.rb +14 -14
- data/lib/aws/redshift/client.rb +596 -592
- data/lib/aws/redshift/config.rb +1 -1
- data/lib/aws/route_53.rb +30 -30
- data/lib/aws/route_53/change_batch.rb +7 -7
- data/lib/aws/route_53/client.rb +188 -152
- data/lib/aws/route_53/hosted_zone.rb +4 -4
- data/lib/aws/route_53/hosted_zone_collection.rb +7 -7
- data/lib/aws/route_53/resource_record_set.rb +10 -10
- data/lib/aws/route_53/resource_record_set_collection.rb +6 -6
- data/lib/aws/s3.rb +79 -79
- data/lib/aws/s3/access_control_list.rb +44 -36
- data/lib/aws/s3/acl_options.rb +51 -51
- data/lib/aws/s3/bucket.rb +146 -146
- data/lib/aws/s3/bucket_collection.rb +21 -21
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +81 -82
- data/lib/aws/s3/bucket_tag_collection.rb +4 -2
- data/lib/aws/s3/cipher_io.rb +5 -4
- data/lib/aws/s3/client.rb +89 -84
- data/lib/aws/s3/client/xml.rb +1 -1
- data/lib/aws/s3/config.rb +7 -1
- data/lib/aws/s3/cors_rule.rb +2 -0
- data/lib/aws/s3/cors_rule_collection.rb +42 -40
- data/lib/aws/s3/data_options.rb +16 -11
- data/lib/aws/s3/encryption_utils.rb +2 -2
- data/lib/aws/s3/errors.rb +7 -7
- data/lib/aws/s3/multipart_upload.rb +30 -33
- data/lib/aws/s3/multipart_upload_collection.rb +8 -6
- data/lib/aws/s3/object_collection.rb +35 -35
- data/lib/aws/s3/object_metadata.rb +6 -6
- data/lib/aws/s3/object_version.rb +4 -4
- data/lib/aws/s3/object_version_collection.rb +15 -15
- data/lib/aws/s3/policy.rb +2 -2
- data/lib/aws/s3/prefixed_collection.rb +9 -5
- data/lib/aws/s3/presigned_post.rb +39 -37
- data/lib/aws/s3/request.rb +11 -11
- data/lib/aws/s3/s3_object.rb +210 -200
- data/lib/aws/s3/tree.rb +25 -27
- data/lib/aws/s3/tree/child_collection.rb +3 -3
- data/lib/aws/s3/tree/leaf_node.rb +2 -2
- data/lib/aws/s3/tree/parent.rb +1 -1
- data/lib/aws/s3/website_configuration.rb +13 -13
- data/lib/aws/simple_db.rb +83 -83
- data/lib/aws/simple_db/attribute.rb +9 -7
- data/lib/aws/simple_db/attribute_collection.rb +22 -13
- data/lib/aws/simple_db/client.rb +107 -107
- data/lib/aws/simple_db/config.rb +7 -1
- data/lib/aws/simple_db/consistent_read_option.rb +5 -5
- data/lib/aws/simple_db/domain.rb +4 -2
- data/lib/aws/simple_db/domain_collection.rb +4 -4
- data/lib/aws/simple_db/domain_metadata.rb +5 -5
- data/lib/aws/simple_db/errors.rb +9 -9
- data/lib/aws/simple_db/item.rb +5 -5
- data/lib/aws/simple_db/item_collection.rb +83 -81
- data/lib/aws/simple_db/item_data.rb +4 -4
- data/lib/aws/simple_db/put_attributes.rb +3 -3
- data/lib/aws/simple_email_service.rb +140 -140
- data/lib/aws/simple_email_service/client.rb +82 -76
- data/lib/aws/simple_email_service/config.rb +1 -2
- data/lib/aws/simple_email_service/email_address_collection.rb +3 -3
- data/lib/aws/simple_email_service/identity.rb +8 -8
- data/lib/aws/simple_email_service/quotas.rb +8 -6
- data/lib/aws/simple_workflow.rb +106 -106
- data/lib/aws/simple_workflow/activity_task.rb +15 -22
- data/lib/aws/simple_workflow/activity_task_collection.rb +15 -15
- data/lib/aws/simple_workflow/activity_type.rb +23 -23
- data/lib/aws/simple_workflow/activity_type_collection.rb +23 -23
- data/lib/aws/simple_workflow/client.rb +1004 -956
- data/lib/aws/simple_workflow/config.rb +1 -1
- data/lib/aws/simple_workflow/count.rb +5 -5
- data/lib/aws/simple_workflow/decision_task.rb +129 -129
- data/lib/aws/simple_workflow/decision_task_collection.rb +59 -59
- data/lib/aws/simple_workflow/domain.rb +11 -11
- data/lib/aws/simple_workflow/domain_collection.rb +26 -26
- data/lib/aws/simple_workflow/history_event.rb +32 -32
- data/lib/aws/simple_workflow/history_event_collection.rb +3 -3
- data/lib/aws/simple_workflow/option_formatters.rb +5 -5
- data/lib/aws/simple_workflow/request.rb +1 -1
- data/lib/aws/simple_workflow/resource.rb +1 -1
- data/lib/aws/simple_workflow/type.rb +8 -8
- data/lib/aws/simple_workflow/type_collection.rb +15 -15
- data/lib/aws/simple_workflow/workflow_execution.rb +70 -72
- data/lib/aws/simple_workflow/workflow_execution_collection.rb +130 -130
- data/lib/aws/simple_workflow/workflow_type.rb +27 -25
- data/lib/aws/simple_workflow/workflow_type_collection.rb +20 -20
- data/lib/aws/sns.rb +25 -25
- data/lib/aws/sns/client.rb +55 -55
- data/lib/aws/sns/config.rb +1 -1
- data/lib/aws/sns/policy.rb +1 -1
- data/lib/aws/sns/subscription.rb +7 -7
- data/lib/aws/sns/subscription_collection.rb +5 -5
- data/lib/aws/sns/topic.rb +49 -49
- data/lib/aws/sns/topic_collection.rb +2 -2
- data/lib/aws/sns/topic_subscription_collection.rb +5 -5
- data/lib/aws/sqs.rb +20 -20
- data/lib/aws/sqs/client.rb +78 -78
- data/lib/aws/sqs/config.rb +1 -1
- data/lib/aws/sqs/errors.rb +12 -12
- data/lib/aws/sqs/queue.rb +66 -67
- data/lib/aws/sqs/queue_collection.rb +16 -8
- data/lib/aws/sqs/received_message.rb +7 -6
- data/lib/aws/storage_gateway.rb +21 -21
- data/lib/aws/storage_gateway/client.rb +269 -202
- data/lib/aws/storage_gateway/config.rb +1 -1
- data/lib/aws/sts.rb +10 -8
- data/lib/aws/sts/client.rb +35 -35
- data/lib/aws/sts/session.rb +3 -3
- data/lib/aws/version.rb +1 -2
- metadata +23 -21
- data/lib/aws/core/autoloader.rb +0 -64
- data/lib/net/http/connection_pool.rb +0 -226
- data/lib/net/http/connection_pool/connection.rb +0 -189
- data/lib/net/http/connection_pool/session.rb +0 -126
data/lib/aws/iam/access_key.rb
CHANGED
|
@@ -15,14 +15,14 @@ module AWS
|
|
|
15
15
|
class IAM
|
|
16
16
|
|
|
17
17
|
# @attr_reader [Symbol] status The status of this access key.
|
|
18
|
-
# Status may be
|
|
18
|
+
# Status may be `:active` or `:inactive`.
|
|
19
19
|
#
|
|
20
20
|
class AccessKey < Resource
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
# @param [String] access_key_id The id of this access key.
|
|
23
23
|
# @param [Hash] options
|
|
24
24
|
# @option [String] :user The IAM user this access key belongs to.
|
|
25
|
-
# If
|
|
25
|
+
# If `:user` is omitted then this access key belongs to the
|
|
26
26
|
# AWS account.
|
|
27
27
|
def initialize access_key_id, options = {}
|
|
28
28
|
@id = access_key_id
|
|
@@ -32,7 +32,7 @@ module AWS
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# @return [User,nil] Returns the user this access key belongs to.
|
|
35
|
-
# Returns
|
|
35
|
+
# Returns `nil` if this access key belongs to the AWS account and not
|
|
36
36
|
# a specific user.
|
|
37
37
|
attr_reader :user
|
|
38
38
|
|
|
@@ -59,8 +59,8 @@ module AWS
|
|
|
59
59
|
|
|
60
60
|
# Returns the secret access key.
|
|
61
61
|
#
|
|
62
|
-
# You can only access the secret for newly created access
|
|
63
|
-
# keys. Calling
|
|
62
|
+
# You can only access the secret for newly created access
|
|
63
|
+
# keys. Calling `secret` on existing access keys raises an error.
|
|
64
64
|
#
|
|
65
65
|
# @example Getting the secret from a newly created access key
|
|
66
66
|
#
|
|
@@ -74,7 +74,7 @@ module AWS
|
|
|
74
74
|
# access_key.secret
|
|
75
75
|
# #=> raises a runtime error
|
|
76
76
|
#
|
|
77
|
-
# @return [String] Returns the secret access key.
|
|
77
|
+
# @return [String] Returns the secret access key.
|
|
78
78
|
def secret
|
|
79
79
|
secret_value or raise 'secret is only available for new access keys'
|
|
80
80
|
end
|
|
@@ -82,7 +82,7 @@ module AWS
|
|
|
82
82
|
alias_method :secret_access_key, :secret
|
|
83
83
|
|
|
84
84
|
# @return [String,nil] Returns the name of the user this access key
|
|
85
|
-
# belogns to. If the access key belongs to the account,
|
|
85
|
+
# belogns to. If the access key belongs to the account, `nil` is
|
|
86
86
|
# returned.
|
|
87
87
|
def user_name
|
|
88
88
|
@user ? @user.name : nil
|
|
@@ -131,19 +131,19 @@ module AWS
|
|
|
131
131
|
nil
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
# Returns a hash that should be saved somewhere safe.
|
|
134
|
+
# Returns a hash that should be saved somewhere safe.
|
|
135
135
|
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
136
|
+
# access_keys = iam.access_keys.create
|
|
137
|
+
# access_keys.credentials
|
|
138
|
+
# #=> { :access_key_id => '...', :secret_access_key => '...' }
|
|
139
139
|
#
|
|
140
140
|
# You can also use these credentials to make requests:
|
|
141
141
|
#
|
|
142
|
-
#
|
|
143
|
-
#
|
|
142
|
+
# s3 = AWS::S3.new(access_keys.credentials)
|
|
143
|
+
# s3.buckets.create('newbucket')
|
|
144
144
|
#
|
|
145
145
|
# @return [Hash] Returns a hash with the access key id and
|
|
146
|
-
# secret access key.
|
|
146
|
+
# secret access key.
|
|
147
147
|
def credentials
|
|
148
148
|
{ :access_key_id => id, :secret_access_key => secret }
|
|
149
149
|
end
|
|
@@ -158,8 +158,8 @@ module AWS
|
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# IAM does not provide a request for "get access keys".
|
|
161
|
-
# Also note, we do not page the response. This is because
|
|
162
|
-
# restrictions on how many access keys an account / user may
|
|
161
|
+
# Also note, we do not page the response. This is because
|
|
162
|
+
# restrictions on how many access keys an account / user may
|
|
163
163
|
# have is fewer than one page of results.
|
|
164
164
|
# @private
|
|
165
165
|
protected
|
|
@@ -18,29 +18,29 @@ module AWS
|
|
|
18
18
|
# You can create new keys so that you can rotate out your old keys.
|
|
19
19
|
# You can create, delete, activate and deactivate access keys.
|
|
20
20
|
#
|
|
21
|
-
#
|
|
21
|
+
# ## Create New Access Keys
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
23
|
+
# # for the aws account
|
|
24
|
+
# access_keys = iam.access_keys.create
|
|
25
25
|
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
26
|
+
# # for an iam user
|
|
27
|
+
# user_access_keys = iam.users['johndoe'].access_keys.create
|
|
28
|
+
#
|
|
29
|
+
# ## Secret
|
|
30
30
|
#
|
|
31
31
|
# Make sure after creating an access to retrieve the secret access key
|
|
32
32
|
# and save it somewhere safe.
|
|
33
33
|
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
34
|
+
# access_keys = iam.access_keys.create
|
|
35
|
+
# secret = access_keys.secret
|
|
36
36
|
#
|
|
37
37
|
# If you try to access the secret on an access key that was not newly
|
|
38
38
|
# created an error will be raised. AWS will only give the secret for
|
|
39
39
|
# a newly created access key:
|
|
40
40
|
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
41
|
+
# access_keys = iam.access_keys.first
|
|
42
|
+
# access_keys.secret
|
|
43
|
+
# #=> oops, raises a runtime error
|
|
44
44
|
#
|
|
45
45
|
class AccessKeyCollection
|
|
46
46
|
|
|
@@ -54,8 +54,8 @@ module AWS
|
|
|
54
54
|
@user ? super(@user, options) : super(options)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# @return [User,nil] Returns the user these accesss keys belong to.
|
|
58
|
-
# If this returns
|
|
57
|
+
# @return [User,nil] Returns the user these accesss keys belong to.
|
|
58
|
+
# If this returns `nil` then these access keys belong to the
|
|
59
59
|
# AWS account.
|
|
60
60
|
attr_reader :user
|
|
61
61
|
|
|
@@ -68,19 +68,19 @@ module AWS
|
|
|
68
68
|
|
|
69
69
|
AccessKey.new_from(:create_access_key, resp.access_key,
|
|
70
70
|
resp.access_key.access_key_id, new_options)
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
# @param [String] access_key_id The ID of the access key.
|
|
75
75
|
# @return [AccessKey] Returns a reference to the access key with
|
|
76
|
-
# the given
|
|
76
|
+
# the given `access_key_id`.
|
|
77
77
|
def [] access_key_id
|
|
78
78
|
AccessKey.new(access_key_id, new_options)
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
# Deletes all of the access keys from this collection.
|
|
82
|
-
#
|
|
83
|
-
#
|
|
82
|
+
#
|
|
83
|
+
# iam.users['someuser'].access_keys.clear
|
|
84
84
|
#
|
|
85
85
|
# @return [nil]
|
|
86
86
|
def clear
|
|
@@ -88,15 +88,15 @@ module AWS
|
|
|
88
88
|
nil
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
# Yields once for each access key. You can limit the number of
|
|
92
|
-
# access keys yielded using
|
|
91
|
+
# Yields once for each access key. You can limit the number of
|
|
92
|
+
# access keys yielded using `:limit`.
|
|
93
93
|
#
|
|
94
94
|
# @param [Hash] options
|
|
95
95
|
# @option options [Integer] :limit The maximum number of access keys
|
|
96
96
|
# to yield.
|
|
97
|
-
# @option options [Integer] :batch_size The maximum number of
|
|
97
|
+
# @option options [Integer] :batch_size The maximum number of
|
|
98
98
|
# access keys received each service reqeust.
|
|
99
|
-
# @yieldparam [AccessKey] access_key
|
|
99
|
+
# @yieldparam [AccessKey] access_key
|
|
100
100
|
# @return [nil]
|
|
101
101
|
def each options = {}, &block
|
|
102
102
|
each_options = options.dup
|
|
@@ -37,7 +37,7 @@ module AWS
|
|
|
37
37
|
|
|
38
38
|
# Creates an AWS account alias.
|
|
39
39
|
#
|
|
40
|
-
#
|
|
40
|
+
# iam.account_aliases.create('myaccountalias')
|
|
41
41
|
#
|
|
42
42
|
# For information about account alias restrictions and usage,
|
|
43
43
|
# see http://docs.amazonwebservices.com/IAM/latest/UserGuide/index.html?AccountAlias.html.
|
|
@@ -51,7 +51,7 @@ module AWS
|
|
|
51
51
|
|
|
52
52
|
# Delete an AWS account alias.
|
|
53
53
|
#
|
|
54
|
-
#
|
|
54
|
+
# iam.account_aliases.delete('myaccountalias')
|
|
55
55
|
#
|
|
56
56
|
# @param [String] account_alias The account alias to delete.
|
|
57
57
|
# @return [nil]
|
data/lib/aws/iam/client.rb
CHANGED
|
@@ -39,176 +39,176 @@ module AWS
|
|
|
39
39
|
# @!method add_role_to_instance_profile(options = {})
|
|
40
40
|
# Calls the AddRoleToInstanceProfile API operation.
|
|
41
41
|
# @param [Hash] options
|
|
42
|
-
# *
|
|
42
|
+
# * `:instance_profile_name` - *required* - (String) Name of the
|
|
43
43
|
# instance profile to update.
|
|
44
|
-
# *
|
|
44
|
+
# * `:role_name` - *required* - (String) Name of the role to add.
|
|
45
45
|
# @return [Core::Response]
|
|
46
46
|
|
|
47
47
|
# @!method add_user_to_group(options = {})
|
|
48
48
|
# Calls the AddUserToGroup API operation.
|
|
49
49
|
# @param [Hash] options
|
|
50
|
-
# *
|
|
51
|
-
# *
|
|
50
|
+
# * `:group_name` - *required* - (String) Name of the group to update.
|
|
51
|
+
# * `:user_name` - *required* - (String) Name of the user to add.
|
|
52
52
|
# @return [Core::Response]
|
|
53
53
|
|
|
54
54
|
# @!method change_password(options = {})
|
|
55
55
|
# Calls the ChangePassword API operation.
|
|
56
56
|
# @param [Hash] options
|
|
57
|
-
# *
|
|
58
|
-
# *
|
|
57
|
+
# * `:old_password` - *required* - (String)
|
|
58
|
+
# * `:new_password` - *required* - (String)
|
|
59
59
|
# @return [Core::Response]
|
|
60
60
|
|
|
61
61
|
# @!method create_access_key(options = {})
|
|
62
62
|
# Calls the CreateAccessKey API operation.
|
|
63
63
|
# @param [Hash] options
|
|
64
|
-
# *
|
|
64
|
+
# * `:user_name` - (String) The user name that the new key will belong
|
|
65
65
|
# to.
|
|
66
66
|
# @return [Core::Response]
|
|
67
67
|
# The #data method of the response object returns
|
|
68
68
|
# a hash with the following structure:
|
|
69
|
-
# *
|
|
70
|
-
# *
|
|
71
|
-
# *
|
|
72
|
-
# *
|
|
73
|
-
# *
|
|
74
|
-
# *
|
|
69
|
+
# * `:access_key` - (Hash)
|
|
70
|
+
# * `:user_name` - (String)
|
|
71
|
+
# * `:access_key_id` - (String)
|
|
72
|
+
# * `:status` - (String)
|
|
73
|
+
# * `:secret_access_key` - (String)
|
|
74
|
+
# * `:create_date` - (Time)
|
|
75
75
|
|
|
76
76
|
# @!method create_account_alias(options = {})
|
|
77
77
|
# Calls the CreateAccountAlias API operation.
|
|
78
78
|
# @param [Hash] options
|
|
79
|
-
# *
|
|
79
|
+
# * `:account_alias` - *required* - (String) Name of the account alias
|
|
80
80
|
# to create.
|
|
81
81
|
# @return [Core::Response]
|
|
82
82
|
|
|
83
83
|
# @!method create_group(options = {})
|
|
84
84
|
# Calls the CreateGroup API operation.
|
|
85
85
|
# @param [Hash] options
|
|
86
|
-
# *
|
|
86
|
+
# * `:path` - (String) The path to the group. For more information
|
|
87
87
|
# about paths, see Identifiers for IAM Entities in Using AWS Identity
|
|
88
88
|
# and Access Management. This parameter is optional. If it is not
|
|
89
89
|
# included, it defaults to a slash (/).
|
|
90
|
-
# *
|
|
90
|
+
# * `:group_name` - *required* - (String) Name of the group to create.
|
|
91
91
|
# Do not include the path in this value.
|
|
92
92
|
# @return [Core::Response]
|
|
93
93
|
# The #data method of the response object returns
|
|
94
94
|
# a hash with the following structure:
|
|
95
|
-
# *
|
|
96
|
-
# *
|
|
97
|
-
# *
|
|
98
|
-
# *
|
|
99
|
-
# *
|
|
100
|
-
# *
|
|
95
|
+
# * `:group` - (Hash)
|
|
96
|
+
# * `:path` - (String)
|
|
97
|
+
# * `:group_name` - (String)
|
|
98
|
+
# * `:group_id` - (String)
|
|
99
|
+
# * `:arn` - (String)
|
|
100
|
+
# * `:create_date` - (Time)
|
|
101
101
|
|
|
102
102
|
# @!method create_instance_profile(options = {})
|
|
103
103
|
# Calls the CreateInstanceProfile API operation.
|
|
104
104
|
# @param [Hash] options
|
|
105
|
-
# *
|
|
105
|
+
# * `:instance_profile_name` - *required* - (String) Name of the
|
|
106
106
|
# instance profile to create.
|
|
107
|
-
# *
|
|
107
|
+
# * `:path` - (String) The path to the instance profile. For more
|
|
108
108
|
# information about paths, see Identifiers for IAM Entities in Using
|
|
109
109
|
# AWS Identity and Access Management. This parameter is optional. If
|
|
110
110
|
# it is not included, it defaults to a slash (/).
|
|
111
111
|
# @return [Core::Response]
|
|
112
112
|
# The #data method of the response object returns
|
|
113
113
|
# a hash with the following structure:
|
|
114
|
-
# *
|
|
115
|
-
# *
|
|
116
|
-
# *
|
|
117
|
-
# *
|
|
118
|
-
# *
|
|
119
|
-
# *
|
|
120
|
-
# *
|
|
121
|
-
# *
|
|
122
|
-
# *
|
|
123
|
-
# *
|
|
124
|
-
# *
|
|
125
|
-
# *
|
|
126
|
-
# *
|
|
114
|
+
# * `:instance_profile` - (Hash)
|
|
115
|
+
# * `:path` - (String)
|
|
116
|
+
# * `:instance_profile_name` - (String)
|
|
117
|
+
# * `:instance_profile_id` - (String)
|
|
118
|
+
# * `:arn` - (String)
|
|
119
|
+
# * `:create_date` - (Time)
|
|
120
|
+
# * `:roles` - (Array<Hash>)
|
|
121
|
+
# * `:path` - (String)
|
|
122
|
+
# * `:role_name` - (String)
|
|
123
|
+
# * `:role_id` - (String)
|
|
124
|
+
# * `:arn` - (String)
|
|
125
|
+
# * `:create_date` - (Time)
|
|
126
|
+
# * `:assume_role_policy_document` - (String)
|
|
127
127
|
|
|
128
128
|
# @!method create_login_profile(options = {})
|
|
129
129
|
# Calls the CreateLoginProfile API operation.
|
|
130
130
|
# @param [Hash] options
|
|
131
|
-
# *
|
|
131
|
+
# * `:user_name` - *required* - (String) Name of the user to create a
|
|
132
132
|
# password for.
|
|
133
|
-
# *
|
|
133
|
+
# * `:password` - *required* - (String) The new password for the user
|
|
134
134
|
# name.
|
|
135
135
|
# @return [Core::Response]
|
|
136
136
|
# The #data method of the response object returns
|
|
137
137
|
# a hash with the following structure:
|
|
138
|
-
# *
|
|
139
|
-
# *
|
|
140
|
-
# *
|
|
138
|
+
# * `:login_profile` - (Hash)
|
|
139
|
+
# * `:user_name` - (String)
|
|
140
|
+
# * `:create_date` - (Time)
|
|
141
141
|
|
|
142
142
|
# @!method create_role(options = {})
|
|
143
143
|
# Calls the CreateRole API operation.
|
|
144
144
|
# @param [Hash] options
|
|
145
|
-
# *
|
|
145
|
+
# * `:path` - (String) The path to the role. For more information about
|
|
146
146
|
# paths, see Identifiers for IAM Entities in Using AWS Identity and
|
|
147
147
|
# Access Management. This parameter is optional. If it is not
|
|
148
148
|
# included, it defaults to a slash (/).
|
|
149
|
-
# *
|
|
150
|
-
# *
|
|
149
|
+
# * `:role_name` - *required* - (String) Name of the role to create.
|
|
150
|
+
# * `:assume_role_policy_document` - *required* - (String) The policy
|
|
151
151
|
# that grants an entity permission to assume the role.
|
|
152
152
|
# @return [Core::Response]
|
|
153
153
|
# The #data method of the response object returns
|
|
154
154
|
# a hash with the following structure:
|
|
155
|
-
# *
|
|
156
|
-
# *
|
|
157
|
-
# *
|
|
158
|
-
# *
|
|
159
|
-
# *
|
|
160
|
-
# *
|
|
161
|
-
# *
|
|
155
|
+
# * `:role` - (Hash)
|
|
156
|
+
# * `:path` - (String)
|
|
157
|
+
# * `:role_name` - (String)
|
|
158
|
+
# * `:role_id` - (String)
|
|
159
|
+
# * `:arn` - (String)
|
|
160
|
+
# * `:create_date` - (Time)
|
|
161
|
+
# * `:assume_role_policy_document` - (String)
|
|
162
162
|
|
|
163
163
|
# @!method create_user(options = {})
|
|
164
164
|
# Calls the CreateUser API operation.
|
|
165
165
|
# @param [Hash] options
|
|
166
|
-
# *
|
|
166
|
+
# * `:path` - (String) The path for the user name. For more information
|
|
167
167
|
# about paths, see Identifiers for IAM Entities in Using AWS Identity
|
|
168
168
|
# and Access Management. This parameter is optional. If it is not
|
|
169
169
|
# included, it defaults to a slash (/).
|
|
170
|
-
# *
|
|
170
|
+
# * `:user_name` - *required* - (String) Name of the user to create.
|
|
171
171
|
# @return [Core::Response]
|
|
172
172
|
# The #data method of the response object returns
|
|
173
173
|
# a hash with the following structure:
|
|
174
|
-
# *
|
|
175
|
-
# *
|
|
176
|
-
# *
|
|
177
|
-
# *
|
|
178
|
-
# *
|
|
179
|
-
# *
|
|
174
|
+
# * `:user` - (Hash)
|
|
175
|
+
# * `:path` - (String)
|
|
176
|
+
# * `:user_name` - (String)
|
|
177
|
+
# * `:user_id` - (String)
|
|
178
|
+
# * `:arn` - (String)
|
|
179
|
+
# * `:create_date` - (Time)
|
|
180
180
|
|
|
181
181
|
# @!method create_virtual_mfa_device(options = {})
|
|
182
182
|
# Calls the CreateVirtualMFADevice API operation.
|
|
183
183
|
# @param [Hash] options
|
|
184
|
-
# *
|
|
184
|
+
# * `:path` - (String) The path for the virtual MFA device. For more
|
|
185
185
|
# information about paths, see Identifiers for IAM Entities in Using
|
|
186
186
|
# AWS Identity and Access Management. This parameter is optional. If
|
|
187
187
|
# it is not included, it defaults to a slash (/).
|
|
188
|
-
# *
|
|
188
|
+
# * `:virtual_mfa_device_name` - *required* - (String) The name of the
|
|
189
189
|
# virtual MFA device. Use with path to uniquely identify a virtual
|
|
190
190
|
# MFA device.
|
|
191
191
|
# @return [Core::Response]
|
|
192
192
|
# The #data method of the response object returns
|
|
193
193
|
# a hash with the following structure:
|
|
194
|
-
# *
|
|
195
|
-
# *
|
|
196
|
-
# *
|
|
197
|
-
# *
|
|
198
|
-
# *
|
|
199
|
-
# *
|
|
200
|
-
# *
|
|
201
|
-
# *
|
|
202
|
-
# *
|
|
203
|
-
# *
|
|
204
|
-
# *
|
|
194
|
+
# * `:virtual_mfa_device` - (Hash)
|
|
195
|
+
# * `:serial_number` - (String)
|
|
196
|
+
# * `:base_32_string_seed` - (String)
|
|
197
|
+
# * `:qr_code_png` - (String)
|
|
198
|
+
# * `:user` - (Hash)
|
|
199
|
+
# * `:path` - (String)
|
|
200
|
+
# * `:user_name` - (String)
|
|
201
|
+
# * `:user_id` - (String)
|
|
202
|
+
# * `:arn` - (String)
|
|
203
|
+
# * `:create_date` - (Time)
|
|
204
|
+
# * `:enable_date` - (Time)
|
|
205
205
|
|
|
206
206
|
# @!method deactivate_mfa_device(options = {})
|
|
207
207
|
# Calls the DeactivateMFADevice API operation.
|
|
208
208
|
# @param [Hash] options
|
|
209
|
-
# *
|
|
209
|
+
# * `:user_name` - *required* - (String) Name of the user whose MFA
|
|
210
210
|
# device you want to deactivate.
|
|
211
|
-
# *
|
|
211
|
+
# * `:serial_number` - *required* - (String) The serial number that
|
|
212
212
|
# uniquely identifies the MFA device. For virtual MFA devices, the
|
|
213
213
|
# serial number is the device ARN.
|
|
214
214
|
# @return [Core::Response]
|
|
@@ -216,16 +216,16 @@ module AWS
|
|
|
216
216
|
# @!method delete_access_key(options = {})
|
|
217
217
|
# Calls the DeleteAccessKey API operation.
|
|
218
218
|
# @param [Hash] options
|
|
219
|
-
# *
|
|
219
|
+
# * `:user_name` - (String) Name of the user whose key you want to
|
|
220
220
|
# delete.
|
|
221
|
-
# *
|
|
221
|
+
# * `:access_key_id` - *required* - (String) The Access Key ID for the
|
|
222
222
|
# Access Key ID and Secret Access Key you want to delete.
|
|
223
223
|
# @return [Core::Response]
|
|
224
224
|
|
|
225
225
|
# @!method delete_account_alias(options = {})
|
|
226
226
|
# Calls the DeleteAccountAlias API operation.
|
|
227
227
|
# @param [Hash] options
|
|
228
|
-
# *
|
|
228
|
+
# * `:account_alias` - *required* - (String) Name of the account alias
|
|
229
229
|
# to delete.
|
|
230
230
|
# @return [Core::Response]
|
|
231
231
|
|
|
@@ -237,82 +237,82 @@ module AWS
|
|
|
237
237
|
# @!method delete_group(options = {})
|
|
238
238
|
# Calls the DeleteGroup API operation.
|
|
239
239
|
# @param [Hash] options
|
|
240
|
-
# *
|
|
240
|
+
# * `:group_name` - *required* - (String) Name of the group to delete.
|
|
241
241
|
# @return [Core::Response]
|
|
242
242
|
|
|
243
243
|
# @!method delete_group_policy(options = {})
|
|
244
244
|
# Calls the DeleteGroupPolicy API operation.
|
|
245
245
|
# @param [Hash] options
|
|
246
|
-
# *
|
|
246
|
+
# * `:group_name` - *required* - (String) Name of the group the policy
|
|
247
247
|
# is associated with.
|
|
248
|
-
# *
|
|
248
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
249
249
|
# to delete.
|
|
250
250
|
# @return [Core::Response]
|
|
251
251
|
|
|
252
252
|
# @!method delete_instance_profile(options = {})
|
|
253
253
|
# Calls the DeleteInstanceProfile API operation.
|
|
254
254
|
# @param [Hash] options
|
|
255
|
-
# *
|
|
255
|
+
# * `:instance_profile_name` - *required* - (String) Name of the
|
|
256
256
|
# instance profile to delete.
|
|
257
257
|
# @return [Core::Response]
|
|
258
258
|
|
|
259
259
|
# @!method delete_login_profile(options = {})
|
|
260
260
|
# Calls the DeleteLoginProfile API operation.
|
|
261
261
|
# @param [Hash] options
|
|
262
|
-
# *
|
|
262
|
+
# * `:user_name` - *required* - (String) Name of the user whose
|
|
263
263
|
# password you want to delete.
|
|
264
264
|
# @return [Core::Response]
|
|
265
265
|
|
|
266
266
|
# @!method delete_role(options = {})
|
|
267
267
|
# Calls the DeleteRole API operation.
|
|
268
268
|
# @param [Hash] options
|
|
269
|
-
# *
|
|
269
|
+
# * `:role_name` - *required* - (String) Name of the role to delete.
|
|
270
270
|
# @return [Core::Response]
|
|
271
271
|
|
|
272
272
|
# @!method delete_role_policy(options = {})
|
|
273
273
|
# Calls the DeleteRolePolicy API operation.
|
|
274
274
|
# @param [Hash] options
|
|
275
|
-
# *
|
|
275
|
+
# * `:role_name` - *required* - (String) Name of the role the
|
|
276
276
|
# associated with the policy.
|
|
277
|
-
# *
|
|
277
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
278
278
|
# to delete.
|
|
279
279
|
# @return [Core::Response]
|
|
280
280
|
|
|
281
281
|
# @!method delete_server_certificate(options = {})
|
|
282
282
|
# Calls the DeleteServerCertificate API operation.
|
|
283
283
|
# @param [Hash] options
|
|
284
|
-
# *
|
|
284
|
+
# * `:server_certificate_name` - *required* - (String) The name of the
|
|
285
285
|
# server certificate you want to delete.
|
|
286
286
|
# @return [Core::Response]
|
|
287
287
|
|
|
288
288
|
# @!method delete_signing_certificate(options = {})
|
|
289
289
|
# Calls the DeleteSigningCertificate API operation.
|
|
290
290
|
# @param [Hash] options
|
|
291
|
-
# *
|
|
291
|
+
# * `:user_name` - (String) Name of the user the signing certificate
|
|
292
292
|
# belongs to.
|
|
293
|
-
# *
|
|
293
|
+
# * `:certificate_id` - *required* - (String) ID of the signing
|
|
294
294
|
# certificate to delete.
|
|
295
295
|
# @return [Core::Response]
|
|
296
296
|
|
|
297
297
|
# @!method delete_user(options = {})
|
|
298
298
|
# Calls the DeleteUser API operation.
|
|
299
299
|
# @param [Hash] options
|
|
300
|
-
# *
|
|
300
|
+
# * `:user_name` - *required* - (String) Name of the user to delete.
|
|
301
301
|
# @return [Core::Response]
|
|
302
302
|
|
|
303
303
|
# @!method delete_user_policy(options = {})
|
|
304
304
|
# Calls the DeleteUserPolicy API operation.
|
|
305
305
|
# @param [Hash] options
|
|
306
|
-
# *
|
|
306
|
+
# * `:user_name` - *required* - (String) Name of the user the policy is
|
|
307
307
|
# associated with.
|
|
308
|
-
# *
|
|
308
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
309
309
|
# to delete.
|
|
310
310
|
# @return [Core::Response]
|
|
311
311
|
|
|
312
312
|
# @!method delete_virtual_mfa_device(options = {})
|
|
313
313
|
# Calls the DeleteVirtualMFADevice API operation.
|
|
314
314
|
# @param [Hash] options
|
|
315
|
-
# *
|
|
315
|
+
# * `:serial_number` - *required* - (String) The serial number that
|
|
316
316
|
# uniquely identifies the MFA device. For virtual MFA devices, the
|
|
317
317
|
# serial number is the same as the ARN.
|
|
318
318
|
# @return [Core::Response]
|
|
@@ -320,14 +320,14 @@ module AWS
|
|
|
320
320
|
# @!method enable_mfa_device(options = {})
|
|
321
321
|
# Calls the EnableMFADevice API operation.
|
|
322
322
|
# @param [Hash] options
|
|
323
|
-
# *
|
|
323
|
+
# * `:user_name` - *required* - (String) Name of the user for whom you
|
|
324
324
|
# want to enable the MFA device.
|
|
325
|
-
# *
|
|
325
|
+
# * `:serial_number` - *required* - (String) The serial number that
|
|
326
326
|
# uniquely identifies the MFA device. For virtual MFA devices, the
|
|
327
327
|
# serial number is the device ARN.
|
|
328
|
-
# *
|
|
328
|
+
# * `:authentication_code_1` - *required* - (String) An authentication
|
|
329
329
|
# code emitted by the device.
|
|
330
|
-
# *
|
|
330
|
+
# * `:authentication_code_2` - *required* - (String) A subsequent
|
|
331
331
|
# authentication code emitted by the device.
|
|
332
332
|
# @return [Core::Response]
|
|
333
333
|
|
|
@@ -337,13 +337,13 @@ module AWS
|
|
|
337
337
|
# @return [Core::Response]
|
|
338
338
|
# The #data method of the response object returns
|
|
339
339
|
# a hash with the following structure:
|
|
340
|
-
# *
|
|
341
|
-
# *
|
|
342
|
-
# *
|
|
343
|
-
# *
|
|
344
|
-
# *
|
|
345
|
-
# *
|
|
346
|
-
# *
|
|
340
|
+
# * `:password_policy` - (Hash)
|
|
341
|
+
# * `:minimum_password_length` - (Integer)
|
|
342
|
+
# * `:require_symbols` - (Boolean)
|
|
343
|
+
# * `:require_numbers` - (Boolean)
|
|
344
|
+
# * `:require_uppercase_characters` - (Boolean)
|
|
345
|
+
# * `:require_lowercase_characters` - (Boolean)
|
|
346
|
+
# * `:allow_users_to_change_password` - (Boolean)
|
|
347
347
|
|
|
348
348
|
# @!method get_account_summary(options = {})
|
|
349
349
|
# Calls the GetAccountSummary API operation.
|
|
@@ -351,667 +351,673 @@ module AWS
|
|
|
351
351
|
# @return [Core::Response]
|
|
352
352
|
# The #data method of the response object returns
|
|
353
353
|
# a hash with the following structure:
|
|
354
|
-
# *
|
|
354
|
+
# * `:summary_map` - (Hash<String,Integer>)
|
|
355
355
|
|
|
356
356
|
# @!method get_group(options = {})
|
|
357
357
|
# Calls the GetGroup API operation.
|
|
358
358
|
# @param [Hash] options
|
|
359
|
-
# *
|
|
360
|
-
# *
|
|
359
|
+
# * `:group_name` - *required* - (String) Name of the group.
|
|
360
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
361
361
|
# only in a subsequent request after you've received a response where
|
|
362
362
|
# the results are truncated. Set it to the value of the Marker
|
|
363
363
|
# element in the response you just received.
|
|
364
|
-
# *
|
|
364
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
365
365
|
# indicate the maximum number of user names you want in the response.
|
|
366
366
|
# If there are additional user names beyond the maximum you specify,
|
|
367
|
-
# the IsTruncated response element is
|
|
367
|
+
# the IsTruncated response element is `true` .
|
|
368
368
|
# @return [Core::Response]
|
|
369
369
|
# The #data method of the response object returns
|
|
370
370
|
# a hash with the following structure:
|
|
371
|
-
# *
|
|
372
|
-
# *
|
|
373
|
-
# *
|
|
374
|
-
# *
|
|
375
|
-
# *
|
|
376
|
-
# *
|
|
377
|
-
# *
|
|
378
|
-
# *
|
|
379
|
-
# *
|
|
380
|
-
# *
|
|
381
|
-
# *
|
|
382
|
-
# *
|
|
383
|
-
# *
|
|
384
|
-
# *
|
|
371
|
+
# * `:group` - (Hash)
|
|
372
|
+
# * `:path` - (String)
|
|
373
|
+
# * `:group_name` - (String)
|
|
374
|
+
# * `:group_id` - (String)
|
|
375
|
+
# * `:arn` - (String)
|
|
376
|
+
# * `:create_date` - (Time)
|
|
377
|
+
# * `:users` - (Array<Hash>)
|
|
378
|
+
# * `:path` - (String)
|
|
379
|
+
# * `:user_name` - (String)
|
|
380
|
+
# * `:user_id` - (String)
|
|
381
|
+
# * `:arn` - (String)
|
|
382
|
+
# * `:create_date` - (Time)
|
|
383
|
+
# * `:is_truncated` - (Boolean)
|
|
384
|
+
# * `:marker` - (String)
|
|
385
385
|
|
|
386
386
|
# @!method get_group_policy(options = {})
|
|
387
387
|
# Calls the GetGroupPolicy API operation.
|
|
388
388
|
# @param [Hash] options
|
|
389
|
-
# *
|
|
389
|
+
# * `:group_name` - *required* - (String) Name of the group the policy
|
|
390
390
|
# is associated with.
|
|
391
|
-
# *
|
|
391
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
392
392
|
# to get.
|
|
393
393
|
# @return [Core::Response]
|
|
394
394
|
# The #data method of the response object returns
|
|
395
395
|
# a hash with the following structure:
|
|
396
|
-
# *
|
|
397
|
-
# *
|
|
398
|
-
# *
|
|
396
|
+
# * `:group_name` - (String)
|
|
397
|
+
# * `:policy_name` - (String)
|
|
398
|
+
# * `:policy_document` - (String)
|
|
399
399
|
|
|
400
400
|
# @!method get_instance_profile(options = {})
|
|
401
401
|
# Calls the GetInstanceProfile API operation.
|
|
402
402
|
# @param [Hash] options
|
|
403
|
-
# *
|
|
403
|
+
# * `:instance_profile_name` - *required* - (String) Name of the
|
|
404
404
|
# instance profile to get information about.
|
|
405
405
|
# @return [Core::Response]
|
|
406
406
|
# The #data method of the response object returns
|
|
407
407
|
# a hash with the following structure:
|
|
408
|
-
# *
|
|
409
|
-
# *
|
|
410
|
-
# *
|
|
411
|
-
# *
|
|
412
|
-
# *
|
|
413
|
-
# *
|
|
414
|
-
# *
|
|
415
|
-
# *
|
|
416
|
-
# *
|
|
417
|
-
# *
|
|
418
|
-
# *
|
|
419
|
-
# *
|
|
420
|
-
# *
|
|
408
|
+
# * `:instance_profile` - (Hash)
|
|
409
|
+
# * `:path` - (String)
|
|
410
|
+
# * `:instance_profile_name` - (String)
|
|
411
|
+
# * `:instance_profile_id` - (String)
|
|
412
|
+
# * `:arn` - (String)
|
|
413
|
+
# * `:create_date` - (Time)
|
|
414
|
+
# * `:roles` - (Array<Hash>)
|
|
415
|
+
# * `:path` - (String)
|
|
416
|
+
# * `:role_name` - (String)
|
|
417
|
+
# * `:role_id` - (String)
|
|
418
|
+
# * `:arn` - (String)
|
|
419
|
+
# * `:create_date` - (Time)
|
|
420
|
+
# * `:assume_role_policy_document` - (String)
|
|
421
421
|
|
|
422
422
|
# @!method get_login_profile(options = {})
|
|
423
423
|
# Calls the GetLoginProfile API operation.
|
|
424
424
|
# @param [Hash] options
|
|
425
|
-
# *
|
|
425
|
+
# * `:user_name` - *required* - (String) Name of the user whose login
|
|
426
426
|
# profile you want to retrieve.
|
|
427
427
|
# @return [Core::Response]
|
|
428
428
|
# The #data method of the response object returns
|
|
429
429
|
# a hash with the following structure:
|
|
430
|
-
# *
|
|
431
|
-
# *
|
|
432
|
-
# *
|
|
430
|
+
# * `:login_profile` - (Hash)
|
|
431
|
+
# * `:user_name` - (String)
|
|
432
|
+
# * `:create_date` - (Time)
|
|
433
433
|
|
|
434
434
|
# @!method get_role(options = {})
|
|
435
435
|
# Calls the GetRole API operation.
|
|
436
436
|
# @param [Hash] options
|
|
437
|
-
# *
|
|
437
|
+
# * `:role_name` - *required* - (String) Name of the role to get
|
|
438
438
|
# information about.
|
|
439
439
|
# @return [Core::Response]
|
|
440
440
|
# The #data method of the response object returns
|
|
441
441
|
# a hash with the following structure:
|
|
442
|
-
# *
|
|
443
|
-
# *
|
|
444
|
-
# *
|
|
445
|
-
# *
|
|
446
|
-
# *
|
|
447
|
-
# *
|
|
448
|
-
# *
|
|
442
|
+
# * `:role` - (Hash)
|
|
443
|
+
# * `:path` - (String)
|
|
444
|
+
# * `:role_name` - (String)
|
|
445
|
+
# * `:role_id` - (String)
|
|
446
|
+
# * `:arn` - (String)
|
|
447
|
+
# * `:create_date` - (Time)
|
|
448
|
+
# * `:assume_role_policy_document` - (String)
|
|
449
449
|
|
|
450
450
|
# @!method get_role_policy(options = {})
|
|
451
451
|
# Calls the GetRolePolicy API operation.
|
|
452
452
|
# @param [Hash] options
|
|
453
|
-
# *
|
|
453
|
+
# * `:role_name` - *required* - (String) Name of the role associated
|
|
454
454
|
# with the policy.
|
|
455
|
-
# *
|
|
455
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
456
456
|
# to get.
|
|
457
457
|
# @return [Core::Response]
|
|
458
458
|
# The #data method of the response object returns
|
|
459
459
|
# a hash with the following structure:
|
|
460
|
-
# *
|
|
461
|
-
# *
|
|
462
|
-
# *
|
|
460
|
+
# * `:role_name` - (String)
|
|
461
|
+
# * `:policy_name` - (String)
|
|
462
|
+
# * `:policy_document` - (String)
|
|
463
463
|
|
|
464
464
|
# @!method get_server_certificate(options = {})
|
|
465
465
|
# Calls the GetServerCertificate API operation.
|
|
466
466
|
# @param [Hash] options
|
|
467
|
-
# *
|
|
467
|
+
# * `:server_certificate_name` - *required* - (String) The name of the
|
|
468
468
|
# server certificate you want to retrieve information about.
|
|
469
469
|
# @return [Core::Response]
|
|
470
470
|
# The #data method of the response object returns
|
|
471
471
|
# a hash with the following structure:
|
|
472
|
-
# *
|
|
473
|
-
# *
|
|
474
|
-
# *
|
|
475
|
-
# *
|
|
476
|
-
# *
|
|
477
|
-
# *
|
|
478
|
-
# *
|
|
479
|
-
# *
|
|
480
|
-
# *
|
|
472
|
+
# * `:server_certificate` - (Hash)
|
|
473
|
+
# * `:server_certificate_metadata` - (Hash)
|
|
474
|
+
# * `:path` - (String)
|
|
475
|
+
# * `:server_certificate_name` - (String)
|
|
476
|
+
# * `:server_certificate_id` - (String)
|
|
477
|
+
# * `:arn` - (String)
|
|
478
|
+
# * `:upload_date` - (Time)
|
|
479
|
+
# * `:certificate_body` - (String)
|
|
480
|
+
# * `:certificate_chain` - (String)
|
|
481
481
|
|
|
482
482
|
# @!method get_user(options = {})
|
|
483
483
|
# Calls the GetUser API operation.
|
|
484
484
|
# @param [Hash] options
|
|
485
|
-
# *
|
|
485
|
+
# * `:user_name` - (String) Name of the user to get information about.
|
|
486
486
|
# This parameter is optional. If it is not included, it defaults to
|
|
487
487
|
# the user making the request.
|
|
488
488
|
# @return [Core::Response]
|
|
489
489
|
# The #data method of the response object returns
|
|
490
490
|
# a hash with the following structure:
|
|
491
|
-
# *
|
|
492
|
-
# *
|
|
493
|
-
# *
|
|
494
|
-
# *
|
|
495
|
-
# *
|
|
496
|
-
# *
|
|
491
|
+
# * `:user` - (Hash)
|
|
492
|
+
# * `:path` - (String)
|
|
493
|
+
# * `:user_name` - (String)
|
|
494
|
+
# * `:user_id` - (String)
|
|
495
|
+
# * `:arn` - (String)
|
|
496
|
+
# * `:create_date` - (Time)
|
|
497
497
|
|
|
498
498
|
# @!method get_user_policy(options = {})
|
|
499
499
|
# Calls the GetUserPolicy API operation.
|
|
500
500
|
# @param [Hash] options
|
|
501
|
-
# *
|
|
501
|
+
# * `:user_name` - *required* - (String) Name of the user who the
|
|
502
502
|
# policy is associated with.
|
|
503
|
-
# *
|
|
503
|
+
# * `:policy_name` - *required* - (String) Name of the policy document
|
|
504
504
|
# to get.
|
|
505
505
|
# @return [Core::Response]
|
|
506
506
|
# The #data method of the response object returns
|
|
507
507
|
# a hash with the following structure:
|
|
508
|
-
# *
|
|
509
|
-
# *
|
|
510
|
-
# *
|
|
508
|
+
# * `:user_name` - (String)
|
|
509
|
+
# * `:policy_name` - (String)
|
|
510
|
+
# * `:policy_document` - (String)
|
|
511
511
|
|
|
512
512
|
# @!method list_access_keys(options = {})
|
|
513
513
|
# Calls the ListAccessKeys API operation.
|
|
514
514
|
# @param [Hash] options
|
|
515
|
-
# *
|
|
516
|
-
# *
|
|
515
|
+
# * `:user_name` - (String) Name of the user.
|
|
516
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
517
517
|
# results, and only in a subsequent request after you've received a
|
|
518
518
|
# response where the results are truncated. Set it to the value of
|
|
519
519
|
# the Marker element in the response you just received.
|
|
520
|
-
# *
|
|
520
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
521
521
|
# results to indicate the maximum number of keys you want in the
|
|
522
522
|
# response. If there are additional keys beyond the maximum you
|
|
523
|
-
# specify, the IsTruncated response element is
|
|
523
|
+
# specify, the IsTruncated response element is `true` .
|
|
524
524
|
# @return [Core::Response]
|
|
525
525
|
# The #data method of the response object returns
|
|
526
526
|
# a hash with the following structure:
|
|
527
|
-
# *
|
|
528
|
-
# *
|
|
529
|
-
# *
|
|
530
|
-
# *
|
|
531
|
-
# *
|
|
532
|
-
# *
|
|
533
|
-
# *
|
|
527
|
+
# * `:access_key_metadata` - (Array<Hash>)
|
|
528
|
+
# * `:user_name` - (String)
|
|
529
|
+
# * `:access_key_id` - (String)
|
|
530
|
+
# * `:status` - (String)
|
|
531
|
+
# * `:create_date` - (Time)
|
|
532
|
+
# * `:is_truncated` - (Boolean)
|
|
533
|
+
# * `:marker` - (String)
|
|
534
534
|
|
|
535
535
|
# @!method list_account_aliases(options = {})
|
|
536
536
|
# Calls the ListAccountAliases API operation.
|
|
537
537
|
# @param [Hash] options
|
|
538
|
-
# *
|
|
538
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
539
539
|
# only in a subsequent request after you've received a response where
|
|
540
540
|
# the results are truncated. Set it to the value of the Marker
|
|
541
541
|
# element in the response you just received.
|
|
542
|
-
# *
|
|
542
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
543
543
|
# indicate the maximum number of account aliases you want in the
|
|
544
544
|
# response. If there are additional account aliases beyond the
|
|
545
|
-
# maximum you specify, the IsTruncated response element is
|
|
545
|
+
# maximum you specify, the IsTruncated response element is `true` .
|
|
546
546
|
# @return [Core::Response]
|
|
547
547
|
# The #data method of the response object returns
|
|
548
548
|
# a hash with the following structure:
|
|
549
|
-
# *
|
|
550
|
-
# *
|
|
551
|
-
# *
|
|
549
|
+
# * `:account_aliases` - (Array<String>)
|
|
550
|
+
# * `:is_truncated` - (Boolean)
|
|
551
|
+
# * `:marker` - (String)
|
|
552
552
|
|
|
553
553
|
# @!method list_group_policies(options = {})
|
|
554
554
|
# Calls the ListGroupPolicies API operation.
|
|
555
555
|
# @param [Hash] options
|
|
556
|
-
# *
|
|
556
|
+
# * `:group_name` - *required* - (String) The name of the group to list
|
|
557
557
|
# policies for.
|
|
558
|
-
# *
|
|
558
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
559
559
|
# only in a subsequent request after you've received a response where
|
|
560
560
|
# the results are truncated. Set it to the value of the Marker
|
|
561
561
|
# element in the response you just received.
|
|
562
|
-
# *
|
|
562
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
563
563
|
# indicate the maximum number of policy names you want in the
|
|
564
564
|
# response. If there are additional policy names beyond the maximum
|
|
565
|
-
# you specify, the IsTruncated response element is
|
|
565
|
+
# you specify, the IsTruncated response element is `true` .
|
|
566
566
|
# @return [Core::Response]
|
|
567
567
|
# The #data method of the response object returns
|
|
568
568
|
# a hash with the following structure:
|
|
569
|
-
# *
|
|
570
|
-
# *
|
|
571
|
-
# *
|
|
569
|
+
# * `:policy_names` - (Array<String>)
|
|
570
|
+
# * `:is_truncated` - (Boolean)
|
|
571
|
+
# * `:marker` - (String)
|
|
572
572
|
|
|
573
573
|
# @!method list_groups(options = {})
|
|
574
574
|
# Calls the ListGroups API operation.
|
|
575
575
|
# @param [Hash] options
|
|
576
|
-
# *
|
|
576
|
+
# * `:path_prefix` - (String) The path prefix for filtering the
|
|
577
577
|
# results. For example: /division_abc/subdivision_xyz/, which would
|
|
578
578
|
# get all groups whose path starts with
|
|
579
579
|
# /division_abc/subdivision_xyz/. This parameter is optional. If it
|
|
580
580
|
# is not included, it defaults to a slash (/), listing all groups.
|
|
581
|
-
# *
|
|
581
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
582
582
|
# only in a subsequent request after you've received a response where
|
|
583
583
|
# the results are truncated. Set it to the value of the Marker
|
|
584
584
|
# element in the response you just received.
|
|
585
|
-
# *
|
|
585
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
586
586
|
# indicate the maximum number of groups you want in the response. If
|
|
587
587
|
# there are additional groups beyond the maximum you specify, the
|
|
588
|
-
# IsTruncated response element is
|
|
588
|
+
# IsTruncated response element is `true` .
|
|
589
589
|
# @return [Core::Response]
|
|
590
590
|
# The #data method of the response object returns
|
|
591
591
|
# a hash with the following structure:
|
|
592
|
-
# *
|
|
593
|
-
# *
|
|
594
|
-
# *
|
|
595
|
-
# *
|
|
596
|
-
# *
|
|
597
|
-
# *
|
|
598
|
-
# *
|
|
599
|
-
# *
|
|
592
|
+
# * `:groups` - (Array<Hash>)
|
|
593
|
+
# * `:path` - (String)
|
|
594
|
+
# * `:group_name` - (String)
|
|
595
|
+
# * `:group_id` - (String)
|
|
596
|
+
# * `:arn` - (String)
|
|
597
|
+
# * `:create_date` - (Time)
|
|
598
|
+
# * `:is_truncated` - (Boolean)
|
|
599
|
+
# * `:marker` - (String)
|
|
600
600
|
|
|
601
601
|
# @!method list_groups_for_user(options = {})
|
|
602
602
|
# Calls the ListGroupsForUser API operation.
|
|
603
603
|
# @param [Hash] options
|
|
604
|
-
# *
|
|
604
|
+
# * `:user_name` - *required* - (String) The name of the user to list
|
|
605
605
|
# groups for.
|
|
606
|
-
# *
|
|
606
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
607
607
|
# only in a subsequent request after you've received a response where
|
|
608
608
|
# the results are truncated. Set it to the value of the Marker
|
|
609
609
|
# element in the response you just received.
|
|
610
|
-
# *
|
|
610
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
611
611
|
# indicate the maximum number of groups you want in the response. If
|
|
612
612
|
# there are additional groups beyond the maximum you specify, the
|
|
613
|
-
# IsTruncated response element is
|
|
613
|
+
# IsTruncated response element is `true` .
|
|
614
614
|
# @return [Core::Response]
|
|
615
615
|
# The #data method of the response object returns
|
|
616
616
|
# a hash with the following structure:
|
|
617
|
-
# *
|
|
618
|
-
# *
|
|
619
|
-
# *
|
|
620
|
-
# *
|
|
621
|
-
# *
|
|
622
|
-
# *
|
|
623
|
-
# *
|
|
624
|
-
# *
|
|
617
|
+
# * `:groups` - (Array<Hash>)
|
|
618
|
+
# * `:path` - (String)
|
|
619
|
+
# * `:group_name` - (String)
|
|
620
|
+
# * `:group_id` - (String)
|
|
621
|
+
# * `:arn` - (String)
|
|
622
|
+
# * `:create_date` - (Time)
|
|
623
|
+
# * `:is_truncated` - (Boolean)
|
|
624
|
+
# * `:marker` - (String)
|
|
625
625
|
|
|
626
626
|
# @!method list_instance_profiles(options = {})
|
|
627
627
|
# Calls the ListInstanceProfiles API operation.
|
|
628
628
|
# @param [Hash] options
|
|
629
|
-
# *
|
|
629
|
+
# * `:path_prefix` - (String) The path prefix for filtering the
|
|
630
630
|
# results. For example: /application_abc/component_xyz/, which would
|
|
631
631
|
# get all instance profiles whose path starts with
|
|
632
632
|
# /application_abc/component_xyz/. This parameter is optional. If it
|
|
633
633
|
# is not included, it defaults to a slash (/), listing all instance
|
|
634
634
|
# profiles.
|
|
635
|
-
# *
|
|
635
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
636
636
|
# results, and only in a subsequent request after you've received a
|
|
637
637
|
# response where the results are truncated. Set it to the value of
|
|
638
638
|
# the Marker element in the response you just received.
|
|
639
|
-
# *
|
|
639
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
640
640
|
# results to indicate the maximum number of user names you want in
|
|
641
641
|
# the response. If there are additional user names beyond the maximum
|
|
642
|
-
# you specify, the IsTruncated response element is
|
|
642
|
+
# you specify, the IsTruncated response element is `true` .
|
|
643
643
|
# @return [Core::Response]
|
|
644
644
|
# The #data method of the response object returns
|
|
645
645
|
# a hash with the following structure:
|
|
646
|
-
# *
|
|
647
|
-
# *
|
|
648
|
-
# *
|
|
649
|
-
# *
|
|
650
|
-
# *
|
|
651
|
-
# *
|
|
652
|
-
# *
|
|
653
|
-
# *
|
|
654
|
-
# *
|
|
655
|
-
# *
|
|
656
|
-
# *
|
|
657
|
-
# *
|
|
658
|
-
# *
|
|
659
|
-
# *
|
|
660
|
-
# *
|
|
646
|
+
# * `:instance_profiles` - (Array<Hash>)
|
|
647
|
+
# * `:path` - (String)
|
|
648
|
+
# * `:instance_profile_name` - (String)
|
|
649
|
+
# * `:instance_profile_id` - (String)
|
|
650
|
+
# * `:arn` - (String)
|
|
651
|
+
# * `:create_date` - (Time)
|
|
652
|
+
# * `:roles` - (Array<Hash>)
|
|
653
|
+
# * `:path` - (String)
|
|
654
|
+
# * `:role_name` - (String)
|
|
655
|
+
# * `:role_id` - (String)
|
|
656
|
+
# * `:arn` - (String)
|
|
657
|
+
# * `:create_date` - (Time)
|
|
658
|
+
# * `:assume_role_policy_document` - (String)
|
|
659
|
+
# * `:is_truncated` - (Boolean)
|
|
660
|
+
# * `:marker` - (String)
|
|
661
661
|
|
|
662
662
|
# @!method list_instance_profiles_for_role(options = {})
|
|
663
663
|
# Calls the ListInstanceProfilesForRole API operation.
|
|
664
664
|
# @param [Hash] options
|
|
665
|
-
# *
|
|
665
|
+
# * `:role_name` - *required* - (String) The name of the role to list
|
|
666
666
|
# instance profiles for.
|
|
667
|
-
# *
|
|
667
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
668
668
|
# results, and only in a subsequent request after you've received a
|
|
669
669
|
# response where the results are truncated. Set it to the value of
|
|
670
670
|
# the Marker element in the response you just received.
|
|
671
|
-
# *
|
|
671
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
672
672
|
# results to indicate the maximum number of user names you want in
|
|
673
673
|
# the response. If there are additional user names beyond the maximum
|
|
674
|
-
# you specify, the IsTruncated response element is
|
|
674
|
+
# you specify, the IsTruncated response element is `true` .
|
|
675
675
|
# @return [Core::Response]
|
|
676
676
|
# The #data method of the response object returns
|
|
677
677
|
# a hash with the following structure:
|
|
678
|
-
# *
|
|
679
|
-
# *
|
|
680
|
-
# *
|
|
681
|
-
# *
|
|
682
|
-
# *
|
|
683
|
-
# *
|
|
684
|
-
# *
|
|
685
|
-
# *
|
|
686
|
-
# *
|
|
687
|
-
# *
|
|
688
|
-
# *
|
|
689
|
-
# *
|
|
690
|
-
# *
|
|
691
|
-
# *
|
|
692
|
-
# *
|
|
678
|
+
# * `:instance_profiles` - (Array<Hash>)
|
|
679
|
+
# * `:path` - (String)
|
|
680
|
+
# * `:instance_profile_name` - (String)
|
|
681
|
+
# * `:instance_profile_id` - (String)
|
|
682
|
+
# * `:arn` - (String)
|
|
683
|
+
# * `:create_date` - (Time)
|
|
684
|
+
# * `:roles` - (Array<Hash>)
|
|
685
|
+
# * `:path` - (String)
|
|
686
|
+
# * `:role_name` - (String)
|
|
687
|
+
# * `:role_id` - (String)
|
|
688
|
+
# * `:arn` - (String)
|
|
689
|
+
# * `:create_date` - (Time)
|
|
690
|
+
# * `:assume_role_policy_document` - (String)
|
|
691
|
+
# * `:is_truncated` - (Boolean)
|
|
692
|
+
# * `:marker` - (String)
|
|
693
693
|
|
|
694
694
|
# @!method list_mfa_devices(options = {})
|
|
695
695
|
# Calls the ListMFADevices API operation.
|
|
696
696
|
# @param [Hash] options
|
|
697
|
-
# *
|
|
697
|
+
# * `:user_name` - (String) Name of the user whose MFA devices you want
|
|
698
698
|
# to list.
|
|
699
|
-
# *
|
|
699
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
700
700
|
# only in a subsequent request after you've received a response where
|
|
701
701
|
# the results are truncated. Set it to the value of the Marker
|
|
702
702
|
# element in the response you just received.
|
|
703
|
-
# *
|
|
703
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
704
704
|
# indicate the maximum number of MFA devices you want in the
|
|
705
705
|
# response. If there are additional MFA devices beyond the maximum
|
|
706
|
-
# you specify, the IsTruncated response element is
|
|
706
|
+
# you specify, the IsTruncated response element is `true` .
|
|
707
707
|
# @return [Core::Response]
|
|
708
708
|
# The #data method of the response object returns
|
|
709
709
|
# a hash with the following structure:
|
|
710
|
-
# *
|
|
711
|
-
# *
|
|
712
|
-
# *
|
|
713
|
-
# *
|
|
714
|
-
# *
|
|
715
|
-
# *
|
|
710
|
+
# * `:mfa_devices` - (Array<Hash>)
|
|
711
|
+
# * `:user_name` - (String)
|
|
712
|
+
# * `:serial_number` - (String)
|
|
713
|
+
# * `:enable_date` - (Time)
|
|
714
|
+
# * `:is_truncated` - (Boolean)
|
|
715
|
+
# * `:marker` - (String)
|
|
716
716
|
|
|
717
717
|
# @!method list_role_policies(options = {})
|
|
718
718
|
# Calls the ListRolePolicies API operation.
|
|
719
719
|
# @param [Hash] options
|
|
720
|
-
# *
|
|
720
|
+
# * `:role_name` - *required* - (String) The name of the role to list
|
|
721
721
|
# policies for.
|
|
722
|
-
# *
|
|
722
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
723
723
|
# results, and only in a subsequent request after you've received a
|
|
724
724
|
# response where the results are truncated. Set it to the value of
|
|
725
725
|
# the Marker element in the response you just received.
|
|
726
|
-
# *
|
|
726
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
727
727
|
# results to indicate the maximum number of user names you want in
|
|
728
728
|
# the response. If there are additional user names beyond the maximum
|
|
729
|
-
# you specify, the IsTruncated response element is
|
|
729
|
+
# you specify, the IsTruncated response element is `true` .
|
|
730
730
|
# @return [Core::Response]
|
|
731
731
|
# The #data method of the response object returns
|
|
732
732
|
# a hash with the following structure:
|
|
733
|
-
# *
|
|
734
|
-
# *
|
|
735
|
-
# *
|
|
733
|
+
# * `:policy_names` - (Array<String>)
|
|
734
|
+
# * `:is_truncated` - (Boolean)
|
|
735
|
+
# * `:marker` - (String)
|
|
736
736
|
|
|
737
737
|
# @!method list_roles(options = {})
|
|
738
738
|
# Calls the ListRoles API operation.
|
|
739
739
|
# @param [Hash] options
|
|
740
|
-
# *
|
|
740
|
+
# * `:path_prefix` - (String) The path prefix for filtering the
|
|
741
741
|
# results. For example: /application_abc/component_xyz/, which would
|
|
742
742
|
# get all roles whose path starts with
|
|
743
743
|
# /application_abc/component_xyz/. This parameter is optional. If it
|
|
744
744
|
# is not included, it defaults to a slash (/), listing all roles.
|
|
745
|
-
# *
|
|
745
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
746
746
|
# results, and only in a subsequent request after you've received a
|
|
747
747
|
# response where the results are truncated. Set it to the value of
|
|
748
748
|
# the Marker element in the response you just received.
|
|
749
|
-
# *
|
|
749
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
750
750
|
# results to indicate the maximum number of user names you want in
|
|
751
751
|
# the response. If there are additional user names beyond the maximum
|
|
752
|
-
# you specify, the IsTruncated response element is
|
|
752
|
+
# you specify, the IsTruncated response element is `true` .
|
|
753
753
|
# @return [Core::Response]
|
|
754
754
|
# The #data method of the response object returns
|
|
755
755
|
# a hash with the following structure:
|
|
756
|
-
# *
|
|
757
|
-
# *
|
|
758
|
-
# *
|
|
759
|
-
# *
|
|
760
|
-
# *
|
|
761
|
-
# *
|
|
762
|
-
# *
|
|
763
|
-
# *
|
|
764
|
-
# *
|
|
756
|
+
# * `:roles` - (Array<Hash>)
|
|
757
|
+
# * `:path` - (String)
|
|
758
|
+
# * `:role_name` - (String)
|
|
759
|
+
# * `:role_id` - (String)
|
|
760
|
+
# * `:arn` - (String)
|
|
761
|
+
# * `:create_date` - (Time)
|
|
762
|
+
# * `:assume_role_policy_document` - (String)
|
|
763
|
+
# * `:is_truncated` - (Boolean)
|
|
764
|
+
# * `:marker` - (String)
|
|
765
765
|
|
|
766
766
|
# @!method list_server_certificates(options = {})
|
|
767
767
|
# Calls the ListServerCertificates API operation.
|
|
768
768
|
# @param [Hash] options
|
|
769
|
-
# *
|
|
769
|
+
# * `:path_prefix` - (String) The path prefix for filtering the
|
|
770
770
|
# results. For example: /company/servercerts would get all server
|
|
771
771
|
# certificates for which the path starts with /company/servercerts.
|
|
772
772
|
# This parameter is optional. If it is not included, it defaults to a
|
|
773
773
|
# slash (/), listing all server certificates.
|
|
774
|
-
# *
|
|
774
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
775
775
|
# only in a subsequent request after you've received a response where
|
|
776
776
|
# the results are truncated. Set it to the value of the Marker
|
|
777
777
|
# element in the response you just received.
|
|
778
|
-
# *
|
|
778
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
779
779
|
# indicate the maximum number of server certificates you want in the
|
|
780
780
|
# response. If there are additional server certificates beyond the
|
|
781
781
|
# maximum you specify, the IsTruncated response element will be set
|
|
782
|
-
# to
|
|
782
|
+
# to `true` .
|
|
783
783
|
# @return [Core::Response]
|
|
784
784
|
# The #data method of the response object returns
|
|
785
785
|
# a hash with the following structure:
|
|
786
|
-
# *
|
|
787
|
-
# *
|
|
788
|
-
# *
|
|
789
|
-
# *
|
|
790
|
-
# *
|
|
791
|
-
# *
|
|
792
|
-
# *
|
|
793
|
-
# *
|
|
786
|
+
# * `:server_certificate_metadata_list` - (Array<Hash>)
|
|
787
|
+
# * `:path` - (String)
|
|
788
|
+
# * `:server_certificate_name` - (String)
|
|
789
|
+
# * `:server_certificate_id` - (String)
|
|
790
|
+
# * `:arn` - (String)
|
|
791
|
+
# * `:upload_date` - (Time)
|
|
792
|
+
# * `:is_truncated` - (Boolean)
|
|
793
|
+
# * `:marker` - (String)
|
|
794
794
|
|
|
795
795
|
# @!method list_signing_certificates(options = {})
|
|
796
796
|
# Calls the ListSigningCertificates API operation.
|
|
797
797
|
# @param [Hash] options
|
|
798
|
-
# *
|
|
799
|
-
# *
|
|
798
|
+
# * `:user_name` - (String) The name of the user.
|
|
799
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
800
800
|
# only in a subsequent request after you've received a response where
|
|
801
801
|
# the results are truncated. Set it to the value of the Marker
|
|
802
802
|
# element in the response you just received.
|
|
803
|
-
# *
|
|
803
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
804
804
|
# indicate the maximum number of certificate IDs you want in the
|
|
805
805
|
# response. If there are additional certificate IDs beyond the
|
|
806
|
-
# maximum you specify, the IsTruncated response element is
|
|
806
|
+
# maximum you specify, the IsTruncated response element is `true` .
|
|
807
807
|
# @return [Core::Response]
|
|
808
808
|
# The #data method of the response object returns
|
|
809
809
|
# a hash with the following structure:
|
|
810
|
-
# *
|
|
811
|
-
# *
|
|
812
|
-
# *
|
|
813
|
-
# *
|
|
814
|
-
# *
|
|
815
|
-
# *
|
|
816
|
-
# *
|
|
817
|
-
# *
|
|
810
|
+
# * `:certificates` - (Array<Hash>)
|
|
811
|
+
# * `:user_name` - (String)
|
|
812
|
+
# * `:certificate_id` - (String)
|
|
813
|
+
# * `:certificate_body` - (String)
|
|
814
|
+
# * `:status` - (String)
|
|
815
|
+
# * `:upload_date` - (Time)
|
|
816
|
+
# * `:is_truncated` - (Boolean)
|
|
817
|
+
# * `:marker` - (String)
|
|
818
818
|
|
|
819
819
|
# @!method list_user_policies(options = {})
|
|
820
820
|
# Calls the ListUserPolicies API operation.
|
|
821
821
|
# @param [Hash] options
|
|
822
|
-
# *
|
|
822
|
+
# * `:user_name` - *required* - (String) The name of the user to list
|
|
823
823
|
# policies for.
|
|
824
|
-
# *
|
|
824
|
+
# * `:marker` - (String) Use this only when paginating results, and
|
|
825
825
|
# only in a subsequent request after you've received a response where
|
|
826
826
|
# the results are truncated. Set it to the value of the Marker
|
|
827
827
|
# element in the response you just received.
|
|
828
|
-
# *
|
|
828
|
+
# * `:max_items` - (Integer) Use this only when paginating results to
|
|
829
829
|
# indicate the maximum number of policy names you want in the
|
|
830
830
|
# response. If there are additional policy names beyond the maximum
|
|
831
|
-
# you specify, the IsTruncated response element is
|
|
831
|
+
# you specify, the IsTruncated response element is `true` .
|
|
832
832
|
# @return [Core::Response]
|
|
833
833
|
# The #data method of the response object returns
|
|
834
834
|
# a hash with the following structure:
|
|
835
|
-
# *
|
|
836
|
-
# *
|
|
837
|
-
# *
|
|
835
|
+
# * `:policy_names` - (Array<String>)
|
|
836
|
+
# * `:is_truncated` - (Boolean)
|
|
837
|
+
# * `:marker` - (String)
|
|
838
838
|
|
|
839
839
|
# @!method list_users(options = {})
|
|
840
840
|
# Calls the ListUsers API operation.
|
|
841
841
|
# @param [Hash] options
|
|
842
|
-
# *
|
|
842
|
+
# * `:path_prefix` - (String) The path prefix for filtering the
|
|
843
843
|
# results. For example: /division_abc/subdivision_xyz/, which would
|
|
844
844
|
# get all user names whose path starts with
|
|
845
845
|
# /division_abc/subdivision_xyz/. This parameter is optional. If it
|
|
846
846
|
# is not included, it defaults to a slash (/), listing all user
|
|
847
847
|
# names.
|
|
848
|
-
# *
|
|
848
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
849
849
|
# results, and only in a subsequent request after you've received a
|
|
850
850
|
# response where the results are truncated. Set it to the value of
|
|
851
851
|
# the Marker element in the response you just received.
|
|
852
|
-
# *
|
|
852
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
853
853
|
# results to indicate the maximum number of user names you want in
|
|
854
854
|
# the response. If there are additional user names beyond the maximum
|
|
855
|
-
# you specify, the IsTruncated response element is
|
|
855
|
+
# you specify, the IsTruncated response element is `true` .
|
|
856
856
|
# @return [Core::Response]
|
|
857
857
|
# The #data method of the response object returns
|
|
858
858
|
# a hash with the following structure:
|
|
859
|
-
# *
|
|
860
|
-
# *
|
|
861
|
-
# *
|
|
862
|
-
# *
|
|
863
|
-
# *
|
|
864
|
-
# *
|
|
865
|
-
# *
|
|
866
|
-
# *
|
|
859
|
+
# * `:users` - (Array<Hash>)
|
|
860
|
+
# * `:path` - (String)
|
|
861
|
+
# * `:user_name` - (String)
|
|
862
|
+
# * `:user_id` - (String)
|
|
863
|
+
# * `:arn` - (String)
|
|
864
|
+
# * `:create_date` - (Time)
|
|
865
|
+
# * `:is_truncated` - (Boolean)
|
|
866
|
+
# * `:marker` - (String)
|
|
867
867
|
|
|
868
868
|
# @!method list_virtual_mfa_devices(options = {})
|
|
869
869
|
# Calls the ListVirtualMFADevices API operation.
|
|
870
870
|
# @param [Hash] options
|
|
871
|
-
# *
|
|
871
|
+
# * `:assignment_status` - (String) The status (unassigned or assigned)
|
|
872
872
|
# of the devices to list. If you do not specify an AssignmentStatus,
|
|
873
873
|
# the action defaults to Any which lists both assigned and unassigned
|
|
874
|
-
# virtual MFA devices.
|
|
875
|
-
#
|
|
874
|
+
# virtual MFA devices. Valid values include:
|
|
875
|
+
# * `Assigned`
|
|
876
|
+
# * `Unassigned`
|
|
877
|
+
# * `Any`
|
|
878
|
+
# * `:marker` - (String) Use this parameter only when paginating
|
|
876
879
|
# results, and only in a subsequent request after you've received a
|
|
877
880
|
# response where the results are truncated. Set it to the value of
|
|
878
881
|
# the Marker element in the response you just received.
|
|
879
|
-
# *
|
|
882
|
+
# * `:max_items` - (Integer) Use this parameter only when paginating
|
|
880
883
|
# results to indicate the maximum number of user names you want in
|
|
881
884
|
# the response. If there are additional user names beyond the maximum
|
|
882
|
-
# you specify, the IsTruncated response element is
|
|
885
|
+
# you specify, the IsTruncated response element is `true` .
|
|
883
886
|
# @return [Core::Response]
|
|
884
887
|
# The #data method of the response object returns
|
|
885
888
|
# a hash with the following structure:
|
|
886
|
-
# *
|
|
887
|
-
# *
|
|
888
|
-
# *
|
|
889
|
-
# *
|
|
890
|
-
# *
|
|
891
|
-
# *
|
|
892
|
-
# *
|
|
893
|
-
# *
|
|
894
|
-
# *
|
|
895
|
-
# *
|
|
896
|
-
# *
|
|
897
|
-
# *
|
|
898
|
-
# *
|
|
889
|
+
# * `:virtual_mfa_devices` - (Array<Hash>)
|
|
890
|
+
# * `:serial_number` - (String)
|
|
891
|
+
# * `:base_32_string_seed` - (String)
|
|
892
|
+
# * `:qr_code_png` - (String)
|
|
893
|
+
# * `:user` - (Hash)
|
|
894
|
+
# * `:path` - (String)
|
|
895
|
+
# * `:user_name` - (String)
|
|
896
|
+
# * `:user_id` - (String)
|
|
897
|
+
# * `:arn` - (String)
|
|
898
|
+
# * `:create_date` - (Time)
|
|
899
|
+
# * `:enable_date` - (Time)
|
|
900
|
+
# * `:is_truncated` - (Boolean)
|
|
901
|
+
# * `:marker` - (String)
|
|
899
902
|
|
|
900
903
|
# @!method put_group_policy(options = {})
|
|
901
904
|
# Calls the PutGroupPolicy API operation.
|
|
902
905
|
# @param [Hash] options
|
|
903
|
-
# *
|
|
906
|
+
# * `:group_name` - *required* - (String) Name of the group to
|
|
904
907
|
# associate the policy with.
|
|
905
|
-
# *
|
|
906
|
-
# *
|
|
908
|
+
# * `:policy_name` - *required* - (String) Name of the policy document.
|
|
909
|
+
# * `:policy_document` - *required* - (String) The policy document.
|
|
907
910
|
# @return [Core::Response]
|
|
908
911
|
|
|
909
912
|
# @!method put_role_policy(options = {})
|
|
910
913
|
# Calls the PutRolePolicy API operation.
|
|
911
914
|
# @param [Hash] options
|
|
912
|
-
# *
|
|
915
|
+
# * `:role_name` - *required* - (String) Name of the role to associate
|
|
913
916
|
# the policy with.
|
|
914
|
-
# *
|
|
915
|
-
# *
|
|
917
|
+
# * `:policy_name` - *required* - (String) Name of the policy document.
|
|
918
|
+
# * `:policy_document` - *required* - (String) The policy document.
|
|
916
919
|
# @return [Core::Response]
|
|
917
920
|
|
|
918
921
|
# @!method put_user_policy(options = {})
|
|
919
922
|
# Calls the PutUserPolicy API operation.
|
|
920
923
|
# @param [Hash] options
|
|
921
|
-
# *
|
|
924
|
+
# * `:user_name` - *required* - (String) Name of the user to associate
|
|
922
925
|
# the policy with.
|
|
923
|
-
# *
|
|
924
|
-
# *
|
|
926
|
+
# * `:policy_name` - *required* - (String) Name of the policy document.
|
|
927
|
+
# * `:policy_document` - *required* - (String) The policy document.
|
|
925
928
|
# @return [Core::Response]
|
|
926
929
|
|
|
927
930
|
# @!method remove_role_from_instance_profile(options = {})
|
|
928
931
|
# Calls the RemoveRoleFromInstanceProfile API operation.
|
|
929
932
|
# @param [Hash] options
|
|
930
|
-
# *
|
|
933
|
+
# * `:instance_profile_name` - *required* - (String) Name of the
|
|
931
934
|
# instance profile to update.
|
|
932
|
-
# *
|
|
935
|
+
# * `:role_name` - *required* - (String) Name of the role to remove.
|
|
933
936
|
# @return [Core::Response]
|
|
934
937
|
|
|
935
938
|
# @!method remove_user_from_group(options = {})
|
|
936
939
|
# Calls the RemoveUserFromGroup API operation.
|
|
937
940
|
# @param [Hash] options
|
|
938
|
-
# *
|
|
939
|
-
# *
|
|
941
|
+
# * `:group_name` - *required* - (String) Name of the group to update.
|
|
942
|
+
# * `:user_name` - *required* - (String) Name of the user to remove.
|
|
940
943
|
# @return [Core::Response]
|
|
941
944
|
|
|
942
945
|
# @!method resync_mfa_device(options = {})
|
|
943
946
|
# Calls the ResyncMFADevice API operation.
|
|
944
947
|
# @param [Hash] options
|
|
945
|
-
# *
|
|
948
|
+
# * `:user_name` - *required* - (String) Name of the user whose MFA
|
|
946
949
|
# device you want to resynchronize.
|
|
947
|
-
# *
|
|
950
|
+
# * `:serial_number` - *required* - (String) Serial number that
|
|
948
951
|
# uniquely identifies the MFA device.
|
|
949
|
-
# *
|
|
952
|
+
# * `:authentication_code_1` - *required* - (String) An authentication
|
|
950
953
|
# code emitted by the device.
|
|
951
|
-
# *
|
|
954
|
+
# * `:authentication_code_2` - *required* - (String) A subsequent
|
|
952
955
|
# authentication code emitted by the device.
|
|
953
956
|
# @return [Core::Response]
|
|
954
957
|
|
|
955
958
|
# @!method update_access_key(options = {})
|
|
956
959
|
# Calls the UpdateAccessKey API operation.
|
|
957
960
|
# @param [Hash] options
|
|
958
|
-
# *
|
|
961
|
+
# * `:user_name` - (String) Name of the user whose key you want to
|
|
959
962
|
# update.
|
|
960
|
-
# *
|
|
963
|
+
# * `:access_key_id` - *required* - (String) The Access Key ID of the
|
|
961
964
|
# Secret Access Key you want to update.
|
|
962
|
-
# *
|
|
965
|
+
# * `:status` - *required* - (String) The status you want to assign to
|
|
963
966
|
# the Secret Access Key. Active means the key can be used for API
|
|
964
|
-
# calls to AWS, while Inactive means the key cannot be used.
|
|
967
|
+
# calls to AWS, while Inactive means the key cannot be used. Valid
|
|
968
|
+
# values include:
|
|
969
|
+
# * `Active`
|
|
970
|
+
# * `Inactive`
|
|
965
971
|
# @return [Core::Response]
|
|
966
972
|
|
|
967
973
|
# @!method update_account_password_policy(options = {})
|
|
968
974
|
# Calls the UpdateAccountPasswordPolicy API operation.
|
|
969
975
|
# @param [Hash] options
|
|
970
|
-
# *
|
|
971
|
-
# *
|
|
972
|
-
# *
|
|
973
|
-
# *
|
|
974
|
-
# *
|
|
975
|
-
# *
|
|
976
|
+
# * `:minimum_password_length` - (Integer)
|
|
977
|
+
# * `:require_symbols` - (Boolean)
|
|
978
|
+
# * `:require_numbers` - (Boolean)
|
|
979
|
+
# * `:require_uppercase_characters` - (Boolean)
|
|
980
|
+
# * `:require_lowercase_characters` - (Boolean)
|
|
981
|
+
# * `:allow_users_to_change_password` - (Boolean)
|
|
976
982
|
# @return [Core::Response]
|
|
977
983
|
|
|
978
984
|
# @!method update_assume_role_policy(options = {})
|
|
979
985
|
# Calls the UpdateAssumeRolePolicy API operation.
|
|
980
986
|
# @param [Hash] options
|
|
981
|
-
# *
|
|
982
|
-
# *
|
|
987
|
+
# * `:role_name` - *required* - (String) Name of the role to update.
|
|
988
|
+
# * `:policy_document` - *required* - (String) The policy that grants
|
|
983
989
|
# an entity permission to assume the role.
|
|
984
990
|
# @return [Core::Response]
|
|
985
991
|
|
|
986
992
|
# @!method update_group(options = {})
|
|
987
993
|
# Calls the UpdateGroup API operation.
|
|
988
994
|
# @param [Hash] options
|
|
989
|
-
# *
|
|
995
|
+
# * `:group_name` - *required* - (String) Name of the group to update.
|
|
990
996
|
# If you're changing the name of the group, this is the original
|
|
991
997
|
# name.
|
|
992
|
-
# *
|
|
998
|
+
# * `:new_path` - (String) New path for the group. Only include this if
|
|
993
999
|
# changing the group's path.
|
|
994
|
-
# *
|
|
1000
|
+
# * `:new_group_name` - (String) New name for the group. Only include
|
|
995
1001
|
# this if changing the group's name.
|
|
996
1002
|
# @return [Core::Response]
|
|
997
1003
|
|
|
998
1004
|
# @!method update_login_profile(options = {})
|
|
999
1005
|
# Calls the UpdateLoginProfile API operation.
|
|
1000
1006
|
# @param [Hash] options
|
|
1001
|
-
# *
|
|
1007
|
+
# * `:user_name` - *required* - (String) Name of the user whose
|
|
1002
1008
|
# password you want to update.
|
|
1003
|
-
# *
|
|
1009
|
+
# * `:password` - (String) The new password for the user name.
|
|
1004
1010
|
# @return [Core::Response]
|
|
1005
1011
|
|
|
1006
1012
|
# @!method update_server_certificate(options = {})
|
|
1007
1013
|
# Calls the UpdateServerCertificate API operation.
|
|
1008
1014
|
# @param [Hash] options
|
|
1009
|
-
# *
|
|
1015
|
+
# * `:server_certificate_name` - *required* - (String) The name of the
|
|
1010
1016
|
# server certificate that you want to update.
|
|
1011
|
-
# *
|
|
1017
|
+
# * `:new_path` - (String) The new path for the server certificate.
|
|
1012
1018
|
# Include this only if you are updating the server certificate's
|
|
1013
1019
|
# path.
|
|
1014
|
-
# *
|
|
1020
|
+
# * `:new_server_certificate_name` - (String) The new name for the
|
|
1015
1021
|
# server certificate. Include this only if you are updating the
|
|
1016
1022
|
# server certificate's name.
|
|
1017
1023
|
# @return [Core::Response]
|
|
@@ -1019,69 +1025,72 @@ module AWS
|
|
|
1019
1025
|
# @!method update_signing_certificate(options = {})
|
|
1020
1026
|
# Calls the UpdateSigningCertificate API operation.
|
|
1021
1027
|
# @param [Hash] options
|
|
1022
|
-
# *
|
|
1028
|
+
# * `:user_name` - (String) Name of the user the signing certificate
|
|
1023
1029
|
# belongs to.
|
|
1024
|
-
# *
|
|
1030
|
+
# * `:certificate_id` - *required* - (String) The ID of the signing
|
|
1025
1031
|
# certificate you want to update.
|
|
1026
|
-
# *
|
|
1032
|
+
# * `:status` - *required* - (String) The status you want to assign to
|
|
1027
1033
|
# the certificate. Active means the certificate can be used for API
|
|
1028
1034
|
# calls to AWS, while Inactive means the certificate cannot be used.
|
|
1035
|
+
# Valid values include:
|
|
1036
|
+
# * `Active`
|
|
1037
|
+
# * `Inactive`
|
|
1029
1038
|
# @return [Core::Response]
|
|
1030
1039
|
|
|
1031
1040
|
# @!method update_user(options = {})
|
|
1032
1041
|
# Calls the UpdateUser API operation.
|
|
1033
1042
|
# @param [Hash] options
|
|
1034
|
-
# *
|
|
1043
|
+
# * `:user_name` - *required* - (String) Name of the user to update. If
|
|
1035
1044
|
# you're changing the name of the user, this is the original user
|
|
1036
1045
|
# name.
|
|
1037
|
-
# *
|
|
1046
|
+
# * `:new_path` - (String) New path for the user. Include this
|
|
1038
1047
|
# parameter only if you're changing the user's path.
|
|
1039
|
-
# *
|
|
1048
|
+
# * `:new_user_name` - (String) New name for the user. Include this
|
|
1040
1049
|
# parameter only if you're changing the user's name.
|
|
1041
1050
|
# @return [Core::Response]
|
|
1042
1051
|
|
|
1043
1052
|
# @!method upload_server_certificate(options = {})
|
|
1044
1053
|
# Calls the UploadServerCertificate API operation.
|
|
1045
1054
|
# @param [Hash] options
|
|
1046
|
-
# *
|
|
1055
|
+
# * `:path` - (String) The path for the server certificate. For more
|
|
1047
1056
|
# information about paths, see Identifiers for IAM Entities in Using
|
|
1048
1057
|
# AWS Identity and Access Management. This parameter is optional. If
|
|
1049
1058
|
# it is not included, it defaults to a slash (/).
|
|
1050
|
-
# *
|
|
1059
|
+
# * `:server_certificate_name` - *required* - (String) The name for the
|
|
1051
1060
|
# server certificate. Do not include the path in this value.
|
|
1052
|
-
# *
|
|
1061
|
+
# * `:certificate_body` - *required* - (String) The contents of the
|
|
1053
1062
|
# public key certificate in PEM-encoded format.
|
|
1054
|
-
# *
|
|
1063
|
+
# * `:private_key` - *required* - (String) The contents of the private
|
|
1055
1064
|
# key in PEM-encoded format.
|
|
1056
|
-
# *
|
|
1065
|
+
# * `:certificate_chain` - (String) The contents of the certificate
|
|
1057
1066
|
# chain. This is typically a concatenation of the PEM-encoded public
|
|
1058
1067
|
# key certificates of the chain.
|
|
1059
1068
|
# @return [Core::Response]
|
|
1060
1069
|
# The #data method of the response object returns
|
|
1061
1070
|
# a hash with the following structure:
|
|
1062
|
-
# *
|
|
1063
|
-
# *
|
|
1064
|
-
# *
|
|
1065
|
-
# *
|
|
1066
|
-
# *
|
|
1067
|
-
# *
|
|
1071
|
+
# * `:server_certificate_metadata` - (Hash)
|
|
1072
|
+
# * `:path` - (String)
|
|
1073
|
+
# * `:server_certificate_name` - (String)
|
|
1074
|
+
# * `:server_certificate_id` - (String)
|
|
1075
|
+
# * `:arn` - (String)
|
|
1076
|
+
# * `:upload_date` - (Time)
|
|
1068
1077
|
|
|
1069
1078
|
# @!method upload_signing_certificate(options = {})
|
|
1070
1079
|
# Calls the UploadSigningCertificate API operation.
|
|
1071
1080
|
# @param [Hash] options
|
|
1072
|
-
# *
|
|
1081
|
+
# * `:user_name` - (String) Name of the user the signing certificate is
|
|
1073
1082
|
# for.
|
|
1074
|
-
# *
|
|
1083
|
+
# * `:certificate_body` - *required* - (String) The contents of the
|
|
1075
1084
|
# signing certificate.
|
|
1076
1085
|
# @return [Core::Response]
|
|
1077
1086
|
# The #data method of the response object returns
|
|
1078
1087
|
# a hash with the following structure:
|
|
1079
|
-
# *
|
|
1080
|
-
# *
|
|
1081
|
-
# *
|
|
1082
|
-
# *
|
|
1083
|
-
# *
|
|
1084
|
-
# *
|
|
1088
|
+
# * `:certificate` - (Hash)
|
|
1089
|
+
# * `:user_name` - (String)
|
|
1090
|
+
# * `:certificate_id` - (String)
|
|
1091
|
+
# * `:certificate_body` - (String)
|
|
1092
|
+
# * `:status` - (String)
|
|
1093
|
+
# * `:upload_date` - (Time)
|
|
1085
1094
|
|
|
1086
1095
|
# end client methods #
|
|
1087
1096
|
|