Class TrailState.Builder

  • Enclosing class:
    TrailState

    public static final class TrailState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(TrailState defaults)
    • Method Detail

      • advancedEventSelectors

        public TrailState.Builder advancedEventSelectors​(@Nullable
                                                         com.pulumi.core.Output<java.util.List<TrailAdvancedEventSelectorArgs>> advancedEventSelectors)
        Parameters:
        advancedEventSelectors - Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with `eventSelector`.
        Returns:
        builder
      • advancedEventSelectors

        public TrailState.Builder advancedEventSelectors​(java.util.List<TrailAdvancedEventSelectorArgs> advancedEventSelectors)
        Parameters:
        advancedEventSelectors - Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with `eventSelector`.
        Returns:
        builder
      • advancedEventSelectors

        public TrailState.Builder advancedEventSelectors​(TrailAdvancedEventSelectorArgs... advancedEventSelectors)
        Parameters:
        advancedEventSelectors - Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with `eventSelector`.
        Returns:
        builder
      • arn

        public TrailState.Builder arn​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the trail.
        Returns:
        builder
      • arn

        public TrailState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the trail.
        Returns:
        builder
      • cloudWatchLogsGroupArn

        public TrailState.Builder cloudWatchLogsGroupArn​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> cloudWatchLogsGroupArn)
        Parameters:
        cloudWatchLogsGroupArn - Log group name using an ARN that represents the log group to which CloudTrail logs will be delivered. Note that CloudTrail requires the Log Stream wildcard.
        Returns:
        builder
      • cloudWatchLogsGroupArn

        public TrailState.Builder cloudWatchLogsGroupArn​(java.lang.String cloudWatchLogsGroupArn)
        Parameters:
        cloudWatchLogsGroupArn - Log group name using an ARN that represents the log group to which CloudTrail logs will be delivered. Note that CloudTrail requires the Log Stream wildcard.
        Returns:
        builder
      • cloudWatchLogsRoleArn

        public TrailState.Builder cloudWatchLogsRoleArn​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> cloudWatchLogsRoleArn)
        Parameters:
        cloudWatchLogsRoleArn - Role for the CloudWatch Logs endpoint to assume to write to a user’s log group.
        Returns:
        builder
      • cloudWatchLogsRoleArn

        public TrailState.Builder cloudWatchLogsRoleArn​(java.lang.String cloudWatchLogsRoleArn)
        Parameters:
        cloudWatchLogsRoleArn - Role for the CloudWatch Logs endpoint to assume to write to a user’s log group.
        Returns:
        builder
      • enableLogFileValidation

        public TrailState.Builder enableLogFileValidation​(@Nullable
                                                          com.pulumi.core.Output<java.lang.Boolean> enableLogFileValidation)
        Parameters:
        enableLogFileValidation - Whether log file integrity validation is enabled. Defaults to `false`.
        Returns:
        builder
      • enableLogFileValidation

        public TrailState.Builder enableLogFileValidation​(java.lang.Boolean enableLogFileValidation)
        Parameters:
        enableLogFileValidation - Whether log file integrity validation is enabled. Defaults to `false`.
        Returns:
        builder
      • enableLogging

        public TrailState.Builder enableLogging​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> enableLogging)
        Parameters:
        enableLogging - Enables logging for the trail. When set to `true`, logging is started by calling the [`StartLogging`](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StartLogging.html) API. When set to `false`, logging is stopped by calling the [`StopLogging`](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html) API. Defaults to `true`.
        Returns:
        builder
      • enableLogging

        public TrailState.Builder enableLogging​(java.lang.Boolean enableLogging)
        Parameters:
        enableLogging - Enables logging for the trail. When set to `true`, logging is started by calling the [`StartLogging`](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StartLogging.html) API. When set to `false`, logging is stopped by calling the [`StopLogging`](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html) API. Defaults to `true`.
        Returns:
        builder
      • eventSelectors

        public TrailState.Builder eventSelectors​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<TrailEventSelectorArgs>> eventSelectors)
        Parameters:
        eventSelectors - Specifies an event selector for enabling data event logging. Fields documented below. Please note the [CloudTrail limits](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) when configuring these. Conflicts with `advancedEventSelector`.
        Returns:
        builder
      • eventSelectors

        public TrailState.Builder eventSelectors​(java.util.List<TrailEventSelectorArgs> eventSelectors)
        Parameters:
        eventSelectors - Specifies an event selector for enabling data event logging. Fields documented below. Please note the [CloudTrail limits](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) when configuring these. Conflicts with `advancedEventSelector`.
        Returns:
        builder
      • eventSelectors

        public TrailState.Builder eventSelectors​(TrailEventSelectorArgs... eventSelectors)
        Parameters:
        eventSelectors - Specifies an event selector for enabling data event logging. Fields documented below. Please note the [CloudTrail limits](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) when configuring these. Conflicts with `advancedEventSelector`.
        Returns:
        builder
      • homeRegion

        public TrailState.Builder homeRegion​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> homeRegion)
        Parameters:
        homeRegion - Region in which the trail was created.
        Returns:
        builder
      • homeRegion

        public TrailState.Builder homeRegion​(java.lang.String homeRegion)
        Parameters:
        homeRegion - Region in which the trail was created.
        Returns:
        builder
      • includeGlobalServiceEvents

        public TrailState.Builder includeGlobalServiceEvents​(@Nullable
                                                             com.pulumi.core.Output<java.lang.Boolean> includeGlobalServiceEvents)
        Parameters:
        includeGlobalServiceEvents - Whether the trail is publishing events from global services such as IAM to the log files. Defaults to `true`.
        Returns:
        builder
      • includeGlobalServiceEvents

        public TrailState.Builder includeGlobalServiceEvents​(java.lang.Boolean includeGlobalServiceEvents)
        Parameters:
        includeGlobalServiceEvents - Whether the trail is publishing events from global services such as IAM to the log files. Defaults to `true`.
        Returns:
        builder
      • insightSelectors

        public TrailState.Builder insightSelectors​(@Nullable
                                                   com.pulumi.core.Output<java.util.List<TrailInsightSelectorArgs>> insightSelectors)
        Parameters:
        insightSelectors - Configuration block for identifying unusual operational activity. See details below.
        Returns:
        builder
      • insightSelectors

        public TrailState.Builder insightSelectors​(java.util.List<TrailInsightSelectorArgs> insightSelectors)
        Parameters:
        insightSelectors - Configuration block for identifying unusual operational activity. See details below.
        Returns:
        builder
      • insightSelectors

        public TrailState.Builder insightSelectors​(TrailInsightSelectorArgs... insightSelectors)
        Parameters:
        insightSelectors - Configuration block for identifying unusual operational activity. See details below.
        Returns:
        builder
      • isMultiRegionTrail

        public TrailState.Builder isMultiRegionTrail​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Boolean> isMultiRegionTrail)
        Parameters:
        isMultiRegionTrail - Whether the trail is created in the current region or in all regions. Defaults to `false`.
        Returns:
        builder
      • isMultiRegionTrail

        public TrailState.Builder isMultiRegionTrail​(java.lang.Boolean isMultiRegionTrail)
        Parameters:
        isMultiRegionTrail - Whether the trail is created in the current region or in all regions. Defaults to `false`.
        Returns:
        builder
      • isOrganizationTrail

        public TrailState.Builder isOrganizationTrail​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> isOrganizationTrail)
        Parameters:
        isOrganizationTrail - Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to `false`.
        Returns:
        builder
      • isOrganizationTrail

        public TrailState.Builder isOrganizationTrail​(java.lang.Boolean isOrganizationTrail)
        Parameters:
        isOrganizationTrail - Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to `false`.
        Returns:
        builder
      • kmsKeyId

        public TrailState.Builder kmsKeyId​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> kmsKeyId)
        Parameters:
        kmsKeyId - KMS key ARN to use to encrypt the logs delivered by CloudTrail.
        Returns:
        builder
      • kmsKeyId

        public TrailState.Builder kmsKeyId​(java.lang.String kmsKeyId)
        Parameters:
        kmsKeyId - KMS key ARN to use to encrypt the logs delivered by CloudTrail.
        Returns:
        builder
      • name

        public TrailState.Builder name​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the trail.
        Returns:
        builder
      • name

        public TrailState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the trail.
        Returns:
        builder
      • region

        public TrailState.Builder region​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public TrailState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • s3BucketName

        public TrailState.Builder s3BucketName​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> s3BucketName)
        Parameters:
        s3BucketName - Name of the S3 bucket designated for publishing log files. The following arguments are optional:
        Returns:
        builder
      • s3BucketName

        public TrailState.Builder s3BucketName​(java.lang.String s3BucketName)
        Parameters:
        s3BucketName - Name of the S3 bucket designated for publishing log files. The following arguments are optional:
        Returns:
        builder
      • s3KeyPrefix

        public TrailState.Builder s3KeyPrefix​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> s3KeyPrefix)
        Parameters:
        s3KeyPrefix - S3 key prefix that follows the name of the bucket you have designated for log file delivery.
        Returns:
        builder
      • s3KeyPrefix

        public TrailState.Builder s3KeyPrefix​(java.lang.String s3KeyPrefix)
        Parameters:
        s3KeyPrefix - S3 key prefix that follows the name of the bucket you have designated for log file delivery.
        Returns:
        builder
      • snsTopicArn

        public TrailState.Builder snsTopicArn​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> snsTopicArn)
        Parameters:
        snsTopicArn - ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
        Returns:
        builder
      • snsTopicArn

        public TrailState.Builder snsTopicArn​(java.lang.String snsTopicArn)
        Parameters:
        snsTopicArn - ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
        Returns:
        builder
      • snsTopicName

        public TrailState.Builder snsTopicName​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> snsTopicName)
        Parameters:
        snsTopicName - Name of the Amazon SNS topic defined for notification of log file delivery. Specify the SNS topic ARN if it resides in another region.
        Returns:
        builder
      • snsTopicName

        public TrailState.Builder snsTopicName​(java.lang.String snsTopicName)
        Parameters:
        snsTopicName - Name of the Amazon SNS topic defined for notification of log file delivery. Specify the SNS topic ARN if it resides in another region.
        Returns:
        builder
      • tags

        public TrailState.Builder tags​(@Nullable
                                       com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the trail. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public TrailState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the trail. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public TrailState.Builder tagsAll​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public TrailState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder