diff --git a/lib/fog/aws/iam.rb b/lib/fog/aws/iam.rb index aaf01fd18..239798dea 100644 --- a/lib/fog/aws/iam.rb +++ b/lib/fog/aws/iam.rb @@ -16,8 +16,8 @@ module Fog request :create_access_key request :create_account_alias request :create_group - request :create_user request :create_login_profile + request :create_user request :delete_access_key request :delete_account_alias request :delete_group @@ -27,17 +27,17 @@ module Fog request :delete_signing_certificate request :delete_user request :delete_user_policy - request :get_login_profile - request :get_user - request :get_user_policy request :get_group request :get_group_policy + request :get_login_profile request :get_server_certificate + request :get_user + request :get_user_policy request :list_access_keys request :list_account_aliases + request :list_group_policies request :list_groups request :list_groups_for_user - request :list_group_policies request :list_server_certificates request :list_signing_certificates request :list_user_policies @@ -48,8 +48,9 @@ module Fog request :update_access_key request :update_group request :update_login_profile - request :update_user + request :update_server_certificate request :update_signing_certificate + request :update_user request :upload_server_certificate request :upload_signing_certificate diff --git a/lib/fog/aws/requests/iam/update_server_certificate.rb b/lib/fog/aws/requests/iam/update_server_certificate.rb new file mode 100644 index 000000000..d7bc6e04e --- /dev/null +++ b/lib/fog/aws/requests/iam/update_server_certificate.rb @@ -0,0 +1,37 @@ +module Fog + module AWS + class IAM + class Real + # Updates the name and/or the path of the specified server certificate. + # + # ==== Parameters + # * server_certificate_name<~String> - The name of the server + # certificate that you want to update. + # * options<~Hash>: + # * 'NewPath'<~String> - The new path for the server certificate. + # Include this only if you are updating the server certificate's + # path. + # * 'NewServerCertificateName'<~String> - The new name for the server + # certificate. Include this only if you are updating the server + # certificate's name. + # + # ==== Returns + # * response<~Excon::Response>: + # * body<~Hash>: + # * 'RequestId'<~String> - Id of the request + # + # ==== See Also + # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateServerCertificate.html + # + def update_server_certificate(server_certificate_name, options = {}) + request({ + 'Action' => 'UpdateServerCertificate', + 'ServerCertificateName' => server_certificate_name, + :parser => Fog::Parsers::AWS::IAM::Basic.new + }.merge!(options)) + end + + end + end + end +end