Class AWSResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.system.inputs.AbstractInputsResource
org.graylog.integrations.aws.resources.AWSResource
- All Implemented Interfaces:
PluginRestResource
@Path("/aws")
@RequiresAuthentication
@Produces("application/json")
@Consumes("application/json")
public class AWSResource
extends AbstractInputsResource
implements PluginRestResource
Web endpoints for the AWS integration.
Full base URL for requests in this class: http://api/plugins/org.graylog.integrations/aws/
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionAWSResource
(AWSService awsService, KinesisService kinesisService, CloudWatchService cloudWatchService, MessageInputFactory messageInputFactory) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
create
(@Valid @NotNull AWSInputCreateRequest saveRequest) getKinesisStreams
(@Valid @NotNull AWSRequestImpl request) getLogGroupNames
(@Valid @NotNull AWSRequestImpl request) javax.ws.rs.core.Response
kinesisHealthCheck
(@Valid @NotNull KinesisHealthCheckRequest heathCheckRequest) Methods inherited from class org.graylog2.rest.resources.system.inputs.AbstractInputsResource
getInputSummary, maskPasswordsInConfiguration
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
Method Details
-
getAwsRegions
@GET @Timed @Path("/regions") @RequiresPermissions("aws:read") public RegionsResponse getAwsRegions() -
getAvailableServices
@GET @Timed @Path("/available_services") @RequiresPermissions("aws:read") public AvailableServiceResponse getAvailableServices() -
getPermissions
@GET @Timed @Path("/permissions") @RequiresPermissions("aws:read") public KinesisPermissionsResponse getPermissions() -
getLogGroupNames
@POST @Timed @Path("/cloudwatch/log_groups") @RequiresPermissions("aws:read") public LogGroupsResponse getLogGroupNames(@Valid @NotNull @Valid @NotNull AWSRequestImpl request) -
getKinesisStreams
@POST @Timed @Path("/kinesis/streams") @RequiresPermissions("aws:read") public StreamsResponse getKinesisStreams(@Valid @NotNull @Valid @NotNull AWSRequestImpl request) throws ExecutionException - Throws:
ExecutionException
-
kinesisHealthCheck
@POST @Timed @Path("/kinesis/health_check") @RequiresPermissions("aws:read") public javax.ws.rs.core.Response kinesisHealthCheck(@Valid @NotNull @Valid @NotNull KinesisHealthCheckRequest heathCheckRequest) throws ExecutionException, IOException - Throws:
ExecutionException
IOException
-
create
@POST @Timed @Path("/inputs") @RequiresPermissions("inputs:create") public javax.ws.rs.core.Response create(@Valid @NotNull @Valid @NotNull AWSInputCreateRequest saveRequest) throws Exception - Throws:
Exception
-