Interface CreateLogGroupRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchLogsRequest.Builder
,CopyableBuilder<CreateLogGroupRequest.Builder,CreateLogGroupRequest>
,SdkBuilder<CreateLogGroupRequest.Builder,CreateLogGroupRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateLogGroupRequest
public static interface CreateLogGroupRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<CreateLogGroupRequest.Builder,CreateLogGroupRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateLogGroupRequest.Builder
kmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.CreateLogGroupRequest.Builder
logGroupClass(String logGroupClass)
Use this parameter to specify the log group class for this log group.CreateLogGroupRequest.Builder
logGroupClass(LogGroupClass logGroupClass)
Use this parameter to specify the log group class for this log group.CreateLogGroupRequest.Builder
logGroupName(String logGroupName)
A name for the log group.CreateLogGroupRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateLogGroupRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateLogGroupRequest.Builder
tags(Map<String,String> tags)
The key-value pairs to use for the tags.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
logGroupName
CreateLogGroupRequest.Builder logGroupName(String logGroupName)
A name for the log group.
- Parameters:
logGroupName
- A name for the log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
CreateLogGroupRequest.Builder kmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.
- Parameters:
kmsKeyId
- The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateLogGroupRequest.Builder tags(Map<String,String> tags)
The key-value pairs to use for the tags.
You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the
logs:TagResource
orlogs:TagLogGroup
permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.- Parameters:
tags
- The key-value pairs to use for the tags.You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the
logs:TagResource
orlogs:TagLogGroup
permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupClass
CreateLogGroupRequest.Builder logGroupClass(String logGroupClass)
Use this parameter to specify the log group class for this log group. There are two classes:
-
The
Standard
log class supports all CloudWatch Logs features. -
The
Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower costs.
If you omit this parameter, the default of
STANDARD
is used.The value of
logGroupClass
can't be changed after a log group is created.For details about the features supported by each class, see Log classes
- Parameters:
logGroupClass
- Use this parameter to specify the log group class for this log group. There are two classes:-
The
Standard
log class supports all CloudWatch Logs features. -
The
Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower costs.
If you omit this parameter, the default of
STANDARD
is used.The value of
logGroupClass
can't be changed after a log group is created.For details about the features supported by each class, see Log classes
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LogGroupClass
,LogGroupClass
-
-
logGroupClass
CreateLogGroupRequest.Builder logGroupClass(LogGroupClass logGroupClass)
Use this parameter to specify the log group class for this log group. There are two classes:
-
The
Standard
log class supports all CloudWatch Logs features. -
The
Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower costs.
If you omit this parameter, the default of
STANDARD
is used.The value of
logGroupClass
can't be changed after a log group is created.For details about the features supported by each class, see Log classes
- Parameters:
logGroupClass
- Use this parameter to specify the log group class for this log group. There are two classes:-
The
Standard
log class supports all CloudWatch Logs features. -
The
Infrequent Access
log class supports a subset of CloudWatch Logs features and incurs lower costs.
If you omit this parameter, the default of
STANDARD
is used.The value of
logGroupClass
can't be changed after a log group is created.For details about the features supported by each class, see Log classes
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LogGroupClass
,LogGroupClass
-
-
overrideConfiguration
CreateLogGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLogGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-