AWS CloudTrail
Receive the management events of an AWS account from Amazon CloudTrail.
What’s inside
-
AWS CloudTrail component, URI syntax:
aws-cloudtrail:label
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-aws-cloudtrail-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 25 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.aws-cloudtrail.access-key | The access key ID of the AWS credentials, used together with the secretKey option. The endpoint requires it, unless cloudTrailClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true. | String | |
camel.component.aws-cloudtrail.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.aws-cloudtrail.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.aws-cloudtrail.cloud-trail-client | To use a custom software.amazon.awssdk.services.cloudtrail.CloudTrailClient, which is autowired when the registry has a single one. When this option is set, the credentials, region, proxy, endpoint override and trustAllCertificates options are not used. The endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.cloudtrail.CloudTrailClient type. | CloudTrailClient | |
camel.component.aws-cloudtrail.configuration | The configuration that the endpoints of this component start from. Each endpoint gets a copy of it, and the options of the endpoint replace its values. The option is a org.apache.camel.component.aws.cloudtrail.CloudtrailConfiguration type. | CloudtrailConfiguration | |
camel.component.aws-cloudtrail.enabled | Whether to enable auto configuration of the aws-cloudtrail component. This is enabled by default. | Boolean | |
camel.component.aws-cloudtrail.event-source | The event source to receive the events of, which is the AWS service that the request was made to, for example s3.amazonaws.com. The consumer sends it as the EventSource lookup attribute of LookupEvents. If not set, the events of all event sources are received. | String | |
camel.component.aws-cloudtrail.health-check-consumer-enabled | Used for enabling or disabling all consumer based health checks from this component | true | Boolean |
camel.component.aws-cloudtrail.health-check-producer-enabled | Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true. | true | Boolean |
camel.component.aws-cloudtrail.look-back-interval | How often the consumer looks up the lookBackWindow again for events that CloudTrail made visible late. A late event is routed at most this long after it became visible. Must be above 0 unless lookBackWindow is 0. The value is in milliseconds, or a duration such as 1m. The option is a long type. | 60000 | Long |
camel.component.aws-cloudtrail.look-back-window | How far back the consumer looks again, every lookBackInterval, for events that CloudTrail made visible after a newer event (CloudTrail typically delivers an event within 5 minutes). Events not routed yet are routed. The value is in milliseconds, or a duration such as 10m. Set to 0 to disable. The option is a long type. | 600000 | Long |
camel.component.aws-cloudtrail.max-results | Maximum number of records that will be fetched in each lookup page. Each poll drains all pages, so this controls the page size rather than the total per poll. AWS allows up to 50. | 50 | Integer |
camel.component.aws-cloudtrail.override-endpoint | Whether to send the requests to the URI of the uriEndpointOverride option instead of the endpoint of the region. It has no effect when uriEndpointOverride is not set. | false | Boolean |
camel.component.aws-cloudtrail.profile-credentials-name | The name of the profile in the AWS shared credentials and config files, used when useProfileCredentialsProvider is true. If not set, the AWS SDK uses its default profile, which the AWS_PROFILE environment variable can change. | String | |
camel.component.aws-cloudtrail.proxy-host | The host name of the proxy that the HTTP client of Amazon CloudTrail connects through. The proxy is used only when the proxyPort option is set too. | String | |
camel.component.aws-cloudtrail.proxy-port | The port of the proxy that the HTTP client of Amazon CloudTrail connects through. The proxy is used only when the proxyHost option is set too. | Integer | |
camel.component.aws-cloudtrail.proxy-protocol | The protocol that the HTTP client of Amazon CloudTrail uses to connect to the proxy. It is used only when the proxyHost and proxyPort options are set. | https | Protocol |
camel.component.aws-cloudtrail.region | The AWS region of Amazon CloudTrail, as a region ID such as eu-west-1, which is the value of Region.EU_WEST_1.id(). The consumer receives the events of this region only. If not set, the default region provider chain of the AWS SDK is used. | String | |
camel.component.aws-cloudtrail.secret-key | The secret access key of the AWS credentials, used together with the accessKey option. The endpoint requires it, unless cloudTrailClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true. | String | |
camel.component.aws-cloudtrail.session-token | The session token of temporary AWS credentials, for example of an assumed IAM role. It is used only when useSessionCredentials is true, together with the accessKey and secretKey options. When it is not set, the accessKey and secretKey options are used without a session token. | String | |
camel.component.aws-cloudtrail.trust-all-certificates | Whether the HTTP client of Amazon CloudTrail trusts every TLS certificate without checking it. It applies to any endpoint, not only to an overridden one, so use it only for testing, for example against a local emulator. | false | Boolean |
camel.component.aws-cloudtrail.uri-endpoint-override | The URI of the endpoint to use instead of the endpoint of the region, for example http://localhost:4566 for a local emulator. It is used only when overrideEndpoint is true. | String | |
camel.component.aws-cloudtrail.use-default-credentials-provider | Whether to load the credentials with the default credentials provider chain of the AWS SDK, which looks in system properties, environment variables, the shared credentials and config files, and the container or instance role. It takes precedence over the other credentials options. | false | Boolean |
camel.component.aws-cloudtrail.use-profile-credentials-provider | Whether to load the credentials from a profile of the AWS shared credentials and config files, the one of the profileCredentialsName option. It is not used when useDefaultCredentialsProvider is true, and it takes precedence over the session and static credentials. | false | Boolean |
camel.component.aws-cloudtrail.use-session-credentials | Whether to use temporary credentials made of the accessKey, secretKey and sessionToken options, for example those of an assumed IAM role. It is not used when useDefaultCredentialsProvider or useProfileCredentialsProvider is true. | false | Boolean |