Class TrailProps.Jsii$Proxy
- All Implemented Interfaces:
TrailProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
TrailProps
TrailProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudtrail.TrailProps
TrailProps.Builder, TrailProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(TrailProps.Builder builder) Constructor that initializes the object based on literal property values passed by theTrailProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal IBucketThe Amazon S3 bucket.final ILogGroupLog Group to which CloudTrail to push logs to.final RetentionDaysHow long to retain logs in CloudWatchLogs.final BooleanTo determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail log file integrity validation.final IKeyThe AWS Key Management Service (AWS KMS) key ID that you want to use to encrypt CloudTrail logs.final BooleanFor most services, events are recorded in the region where the action occurred.final List<InsightType> A JSON string that contains the insight types you want to log on a trail.final BooleanWhether or not this trail delivers log files from multiple regions to a single S3 bucket for a single account.final BooleanSpecifies whether the trail is applied to all accounts in an organization in AWS Organizations, or only for the current AWS account.final ReadWriteTypeWhen an event occurs in your account, CloudTrail evaluates whether the event matches the settings for your trails.final StringgetOrgId()The orgId.final StringAn Amazon S3 object key prefix that precedes the name of all log files.final BooleanIf CloudTrail pushes logs to CloudWatch Logs in addition to S3.final ITopicSNS topic that is notified when new log files are published.final StringThe name of the trail.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theTrailProps.Builder.
-
-
Method Details
-
getBucket
Description copied from interface:TrailPropsThe Amazon S3 bucket.Default: - if not supplied a bucket will be created with all the correct permisions
- Specified by:
getBucketin interfaceTrailProps
-
getCloudWatchLogGroup
Description copied from interface:TrailPropsLog Group to which CloudTrail to push logs to.Ignored if sendToCloudWatchLogs is set to false.
Default: - a new log group is created and used.
- Specified by:
getCloudWatchLogGroupin interfaceTrailProps
-
getCloudWatchLogsRetention
Description copied from interface:TrailPropsHow long to retain logs in CloudWatchLogs.Ignored if sendToCloudWatchLogs is false or if cloudWatchLogGroup is set.
Default: logs.RetentionDays.ONE_YEAR
- Specified by:
getCloudWatchLogsRetentionin interfaceTrailProps
-
getEnableFileValidation
Description copied from interface:TrailPropsTo determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail log file integrity validation.This feature is built using industry standard algorithms: SHA-256 for hashing and SHA-256 with RSA for digital signing. This makes it computationally infeasible to modify, delete or forge CloudTrail log files without detection. You can use the AWS CLI to validate the files in the location where CloudTrail delivered them.
Default: true
- Specified by:
getEnableFileValidationin interfaceTrailProps
-
getEncryptionKey
Description copied from interface:TrailPropsThe AWS Key Management Service (AWS KMS) key ID that you want to use to encrypt CloudTrail logs.Default: - No encryption.
- Specified by:
getEncryptionKeyin interfaceTrailProps
-
getIncludeGlobalServiceEvents
Description copied from interface:TrailPropsFor most services, events are recorded in the region where the action occurred.For global services such as AWS Identity and Access Management (IAM), AWS STS, Amazon CloudFront, and Route 53, events are delivered to any trail that includes global services, and are logged as occurring in US East (N. Virginia) Region.
Default: true
- Specified by:
getIncludeGlobalServiceEventsin interfaceTrailProps
-
getInsightTypes
Description copied from interface:TrailPropsA JSON string that contains the insight types you want to log on a trail.Default: - No Value.
- Specified by:
getInsightTypesin interfaceTrailProps
-
getIsMultiRegionTrail
Description copied from interface:TrailPropsWhether or not this trail delivers log files from multiple regions to a single S3 bucket for a single account.Default: true
- Specified by:
getIsMultiRegionTrailin interfaceTrailProps
-
getIsOrganizationTrail
Description copied from interface:TrailPropsSpecifies whether the trail is applied to all accounts in an organization in AWS Organizations, or only for the current AWS account.If this is set to true then the current account must be the management account. If it is not, then CloudFormation will throw an error.
If this is set to true and the current account is a management account for an organization in AWS Organizations, the trail will be created in all AWS accounts that belong to the organization. If this is set to false, the trail will remain in the current AWS account but be deleted from all member accounts in the organization.
Default: - false
- Specified by:
getIsOrganizationTrailin interfaceTrailProps
-
getManagementEvents
Description copied from interface:TrailPropsWhen an event occurs in your account, CloudTrail evaluates whether the event matches the settings for your trails.Only events that match your trail settings are delivered to your Amazon S3 bucket and Amazon CloudWatch Logs log group.
This method sets the management configuration for this trail.
Management events provide insight into management operations that are performed on resources in your AWS account. These are also known as control plane operations. Management events can also include non-API events that occur in your account. For example, when a user logs in to your account, CloudTrail logs the ConsoleLogin event.
Default: ReadWriteType.ALL
- Specified by:
getManagementEventsin interfaceTrailProps
-
getOrgId
Description copied from interface:TrailPropsThe orgId.Required when
isOrganizationTrailis set to true to attach the necessary permissions.Default: - No orgId
- Specified by:
getOrgIdin interfaceTrailProps
-
getS3KeyPrefix
Description copied from interface:TrailPropsAn Amazon S3 object key prefix that precedes the name of all log files.Default: - No prefix.
- Specified by:
getS3KeyPrefixin interfaceTrailProps
-
getSendToCloudWatchLogs
Description copied from interface:TrailPropsIf CloudTrail pushes logs to CloudWatch Logs in addition to S3.Disabled for cost out of the box.
Default: false
- Specified by:
getSendToCloudWatchLogsin interfaceTrailProps
-
getSnsTopic
Description copied from interface:TrailPropsSNS topic that is notified when new log files are published.Default: - No notifications.
- Specified by:
getSnsTopicin interfaceTrailProps
-
getTrailName
Description copied from interface:TrailPropsThe name of the trail.We recommend customers do not set an explicit name.
Default: - AWS CloudFormation generated name.
- Specified by:
getTrailNamein interfaceTrailProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-