Interface DestinationLogsConfiguration.Builder

  • Method Details

    • logsEncryptionConfiguration

      DestinationLogsConfiguration.Builder logsEncryptionConfiguration(LogsEncryptionConfiguration logsEncryptionConfiguration)

      The encryption configuration for centralization destination log groups.

      Parameters:
      logsEncryptionConfiguration - The encryption configuration for centralization destination log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logsEncryptionConfiguration

      default DestinationLogsConfiguration.Builder logsEncryptionConfiguration(Consumer<LogsEncryptionConfiguration.Builder> logsEncryptionConfiguration)

      The encryption configuration for centralization destination log groups.

      This is a convenience method that creates an instance of the LogsEncryptionConfiguration.Builder avoiding the need to create one manually via LogsEncryptionConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logsEncryptionConfiguration(LogsEncryptionConfiguration).

      Parameters:
      logsEncryptionConfiguration - a consumer that will call methods on LogsEncryptionConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • backupConfiguration

      DestinationLogsConfiguration.Builder backupConfiguration(LogsBackupConfiguration backupConfiguration)

      Configuration defining the backup region and an optional KMS key for the backup destination.

      Parameters:
      backupConfiguration - Configuration defining the backup region and an optional KMS key for the backup destination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • backupConfiguration

      default DestinationLogsConfiguration.Builder backupConfiguration(Consumer<LogsBackupConfiguration.Builder> backupConfiguration)

      Configuration defining the backup region and an optional KMS key for the backup destination.

      This is a convenience method that creates an instance of the LogsBackupConfiguration.Builder avoiding the need to create one manually via LogsBackupConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to backupConfiguration(LogsBackupConfiguration).

      Parameters:
      backupConfiguration - a consumer that will call methods on LogsBackupConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupNameConfiguration

      DestinationLogsConfiguration.Builder logGroupNameConfiguration(LogGroupNameConfiguration logGroupNameConfiguration)

      Configuration that specifies a naming pattern for destination log groups created during centralization. The pattern supports static text and dynamic variables that are replaced with source attributes when log groups are created.

      Parameters:
      logGroupNameConfiguration - Configuration that specifies a naming pattern for destination log groups created during centralization. The pattern supports static text and dynamic variables that are replaced with source attributes when log groups are created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNameConfiguration

      default DestinationLogsConfiguration.Builder logGroupNameConfiguration(Consumer<LogGroupNameConfiguration.Builder> logGroupNameConfiguration)

      Configuration that specifies a naming pattern for destination log groups created during centralization. The pattern supports static text and dynamic variables that are replaced with source attributes when log groups are created.

      This is a convenience method that creates an instance of the LogGroupNameConfiguration.Builder avoiding the need to create one manually via LogGroupNameConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logGroupNameConfiguration(LogGroupNameConfiguration).

      Parameters:
      logGroupNameConfiguration - a consumer that will call methods on LogGroupNameConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tagPropagationConfiguration

      DestinationLogsConfiguration.Builder tagPropagationConfiguration(TagPropagationConfiguration tagPropagationConfiguration)

      Specifies the tag propagation configuration for this centralization rule. When present, LogGroupNameConfiguration must use a LogGroupNamePattern that contains ${source.logGroup}, ${source.accountId}, and ${source.region}.

      Parameters:
      tagPropagationConfiguration - Specifies the tag propagation configuration for this centralization rule. When present, LogGroupNameConfiguration must use a LogGroupNamePattern that contains ${source.logGroup}, ${source.accountId}, and ${source.region}.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tagPropagationConfiguration

      default DestinationLogsConfiguration.Builder tagPropagationConfiguration(Consumer<TagPropagationConfiguration.Builder> tagPropagationConfiguration)

      Specifies the tag propagation configuration for this centralization rule. When present, LogGroupNameConfiguration must use a LogGroupNamePattern that contains ${source.logGroup}, ${source.accountId}, and ${source.region}.

      This is a convenience method that creates an instance of the TagPropagationConfiguration.Builder avoiding the need to create one manually via TagPropagationConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tagPropagationConfiguration(TagPropagationConfiguration).

      Parameters:
      tagPropagationConfiguration - a consumer that will call methods on TagPropagationConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupDeletionProtection

      DestinationLogsConfiguration.Builder logGroupDeletionProtection(String logGroupDeletionProtection)

      Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates. If you don't specify this setting, the rule doesn't enable deletion protection on the log groups that it creates. If you specify a backup Region in BackupConfiguration, the setting also applies to the log groups that the rule creates in the backup Region.

      When you set this to ENABLED, the rule enables deletion protection only on log groups that it creates after you enable the setting. It does not add deletion protection to log groups the rule created before you enabled the setting.

      If you remove this setting from the rule or delete the rule, deletion protection stays enabled on log groups that already have it. To delete one of these log groups, first disable deletion protection on the log group in the destination account.

      Parameters:
      logGroupDeletionProtection - Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates. If you don't specify this setting, the rule doesn't enable deletion protection on the log groups that it creates. If you specify a backup Region in BackupConfiguration, the setting also applies to the log groups that the rule creates in the backup Region.

      When you set this to ENABLED, the rule enables deletion protection only on log groups that it creates after you enable the setting. It does not add deletion protection to log groups the rule created before you enabled the setting.

      If you remove this setting from the rule or delete the rule, deletion protection stays enabled on log groups that already have it. To delete one of these log groups, first disable deletion protection on the log group in the destination account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroupDeletionProtection

      DestinationLogsConfiguration.Builder logGroupDeletionProtection(DeletionProtection logGroupDeletionProtection)

      Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates. If you don't specify this setting, the rule doesn't enable deletion protection on the log groups that it creates. If you specify a backup Region in BackupConfiguration, the setting also applies to the log groups that the rule creates in the backup Region.

      When you set this to ENABLED, the rule enables deletion protection only on log groups that it creates after you enable the setting. It does not add deletion protection to log groups the rule created before you enabled the setting.

      If you remove this setting from the rule or delete the rule, deletion protection stays enabled on log groups that already have it. To delete one of these log groups, first disable deletion protection on the log group in the destination account.

      Parameters:
      logGroupDeletionProtection - Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates. If you don't specify this setting, the rule doesn't enable deletion protection on the log groups that it creates. If you specify a backup Region in BackupConfiguration, the setting also applies to the log groups that the rule creates in the backup Region.

      When you set this to ENABLED, the rule enables deletion protection only on log groups that it creates after you enable the setting. It does not add deletion protection to log groups the rule created before you enabled the setting.

      If you remove this setting from the rule or delete the rule, deletion protection stays enabled on log groups that already have it. To delete one of these log groups, first disable deletion protection on the log group in the destination account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: