tvaultapi/src/main/java/com/tmobile/cso/vault/api/v2/controller/AzureServicePrincipalAccountsController.java
@ApiOperation(value = "${AzureServicePrincipalAccountsController.createIamRole.value}", notes = "${AzureServicePrincipalAccountsController.createIamRole.notes}")
	@PostMapping(value="/v2/azureserviceaccounts/aws/iam/role",produces="application/json")
	public ResponseEntity<String> createIAMRole(HttpServletRequest request, @RequestHeader(value="vault-token") String token, @RequestBody AWSIAMRole awsiamRole) throws TVaultValidationException{
		UserDetails userDetails = (UserDetails) request.getAttribute(USER_DETAILS_STRING);
		return azureServicePrincipalAccountsService.createIAMRole(userDetails, token, awsiamRole);
	}
/**
	 * Method to create aws iam role
	 * @param token
	 * @param awsiamRole
	 * @return
	 */
Method to create aws iam role
@param token
@param awsiamRole
@return
Method to create aws iam role @param token @param awsiamRole @return
@ApiOperation(value = "${AzureServicePrincipalAccountsController.createIamRole.value}", notes = "${AzureServicePrincipalAccountsController.createIamRole.notes}")
	@PostMapping(value="/v2/azureserviceaccounts/aws/iam/role",produces="application/json")
	public ResponseEntity<String> createIAMRole(HttpServletRequest request, @RequestHeader(value="vault-token") String token, @RequestBody AWSIAMRole awsiamRole) throws TVaultValidationException{
		UserDetails userDetails = (UserDetails) request.getAttribute(USER_DETAILS_STRING);
		return azureServicePrincipalAccountsService.createIAMRole(userDetails, token, awsiamRole);
	}
@ ApiOperation ( value = "${AzureServicePrincipalAccountsController.createIamRole.value}" , notes = "${AzureServicePrincipalAccountsController.createIamRole.notes}" ) @ PostMapping ( value = "/v2/azureserviceaccounts/aws/iam/role" , produces = "application/json" ) public ResponseEntity < String > createIAMRole ( HttpServletRequest request , @ RequestHeader ( value = "vault-token" ) String token , @ RequestBody AWSIAMRole awsiamRole ) throws TVaultValidationException { UserDetails userDetails = ( UserDetails ) request . getAttribute ( USER_DETAILS_STRING ) ; return azureServicePrincipalAccountsService . createIAMRole ( userDetails , token , awsiamRole ) ; }
Method to create aws iam role
 @param token
 @param awsiamRole
 @return
Method to create aws iam role @param token @param awsiamRole @return