Interface DestinationLogsConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DestinationLogsConfiguration.Builder,,DestinationLogsConfiguration> SdkBuilder<DestinationLogsConfiguration.Builder,,DestinationLogsConfiguration> SdkPojo
- Enclosing class:
DestinationLogsConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbackupConfiguration(Consumer<LogsBackupConfiguration.Builder> backupConfiguration) Configuration defining the backup region and an optional KMS key for the backup destination.backupConfiguration(LogsBackupConfiguration backupConfiguration) Configuration defining the backup region and an optional KMS key for the backup destination.logGroupDeletionProtection(String logGroupDeletionProtection) Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates.logGroupDeletionProtection(DeletionProtection logGroupDeletionProtection) Specifies whether this centralization rule enables deletion protection on the destination log groups that it creates.logGroupNameConfiguration(Consumer<LogGroupNameConfiguration.Builder> logGroupNameConfiguration) Configuration that specifies a naming pattern for destination log groups created during centralization.logGroupNameConfiguration(LogGroupNameConfiguration logGroupNameConfiguration) Configuration that specifies a naming pattern for destination log groups created during centralization.logsEncryptionConfiguration(Consumer<LogsEncryptionConfiguration.Builder> logsEncryptionConfiguration) The encryption configuration for centralization destination log groups.logsEncryptionConfiguration(LogsEncryptionConfiguration logsEncryptionConfiguration) The encryption configuration for centralization destination log groups.tagPropagationConfiguration(Consumer<TagPropagationConfiguration.Builder> tagPropagationConfiguration) Specifies the tag propagation configuration for this centralization rule.tagPropagationConfiguration(TagPropagationConfiguration tagPropagationConfiguration) Specifies the tag propagation configuration for this centralization rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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 theLogsEncryptionConfiguration.Builderavoiding the need to create one manually viaLogsEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologsEncryptionConfiguration(LogsEncryptionConfiguration).- Parameters:
logsEncryptionConfiguration- a consumer that will call methods onLogsEncryptionConfiguration.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 theLogsBackupConfiguration.Builderavoiding the need to create one manually viaLogsBackupConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobackupConfiguration(LogsBackupConfiguration).- Parameters:
backupConfiguration- a consumer that will call methods onLogsBackupConfiguration.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 theLogGroupNameConfiguration.Builderavoiding the need to create one manually viaLogGroupNameConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologGroupNameConfiguration(LogGroupNameConfiguration).- Parameters:
logGroupNameConfiguration- a consumer that will call methods onLogGroupNameConfiguration.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,
LogGroupNameConfigurationmust use aLogGroupNamePatternthat contains${source.logGroup},${source.accountId}, and${source.region}.- Parameters:
tagPropagationConfiguration- Specifies the tag propagation configuration for this centralization rule. When present,LogGroupNameConfigurationmust use aLogGroupNamePatternthat 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,
This is a convenience method that creates an instance of theLogGroupNameConfigurationmust use aLogGroupNamePatternthat contains${source.logGroup},${source.accountId}, and${source.region}.TagPropagationConfiguration.Builderavoiding the need to create one manually viaTagPropagationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagPropagationConfiguration(TagPropagationConfiguration).- Parameters:
tagPropagationConfiguration- a consumer that will call methods onTagPropagationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 inBackupConfiguration, 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 inBackupConfiguration, 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:
-