code: func IAMRoleCredentialsFromACS(roleCredentials *ecsacs.IAMRoleCredentials, roleType string) IAMRoleCredentials {
  	return IAMRoleCredentials{
  		CredentialsID:   aws.StringValue(roleCredentials.CredentialsId),
  		SessionToken:    aws.StringValue(roleCredentials.SessionToken),
  		RoleArn:         aws.StringValue(roleCredentials.RoleArn),
  		AccessKeyID:     aws.StringValue(roleCredentials.AccessKeyId),
  		SecretAccessKey: aws.StringValue(roleCredentials.SecretAccessKey),
  		Expiration:      aws.StringValue(roleCredentials.Expiration),
  		RoleType:        roleType,
  	}
  }
docs: // IAMRoleCredentialsFromACS translates ecsacs.IAMRoleCredentials object to
  // api.IAMRoleCredentials