Method: Fog::AWS::IAM::Real#create_instance_profile
- Defined in:
- lib/fog/aws/requests/iam/create_instance_profile.rb
#create_instance_profile(instance_profile_name, path = '/', options = {}) ⇒ Object
Create a new instance_profile
Parameters
-
instance_profile_name<~String>: name of the instance profile to create (do not include path)
-
path<~String>: optional path to group, defaults to ‘/’
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘InstanceProfile’<~Hash>:
-
Arn<~String> -
-
CreateDate<~Date>
-
InstanceProfileId<~String> -
-
InstanceProfileName<~String> -
-
Path<~String> -
-
Roles<~Array> - role<~Hash>:
* 'Arn'<~String> - * 'AssumeRolePolicyDocument'<~String< * 'Path'<~String> - * 'RoleId'<~String> - * 'RoleName'<~String> -
-
-
‘RequestId’<~String> - Id of the request
-
-
See Also
docs.amazonwebservices.com/IAM/latest/APIReference/API_CreateInstanceProfile.html
35 36 37 38 39 40 41 42 |
# File 'lib/fog/aws/requests/iam/create_instance_profile.rb', line 35 def create_instance_profile(instance_profile_name, path='/', ={}) request({ 'Action' => 'CreateInstanceProfile', 'InstanceProfileName' => instance_profile_name, 'Path' => path, :parser => Fog::Parsers::AWS::IAM::InstanceProfile.new }.merge!()) end |