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