AWS Native is in preview. AWS Classic is fully supported.
aws-native.logs.getLogGroup
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource schema for AWS::Logs::LogGroup
Using getLogGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLogGroup(args: GetLogGroupArgs, opts?: InvokeOptions): Promise<GetLogGroupResult>
function getLogGroupOutput(args: GetLogGroupOutputArgs, opts?: InvokeOptions): Output<GetLogGroupResult>
def get_log_group(log_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogGroupResult
def get_log_group_output(log_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogGroupResult]
func LookupLogGroup(ctx *Context, args *LookupLogGroupArgs, opts ...InvokeOption) (*LookupLogGroupResult, error)
func LookupLogGroupOutput(ctx *Context, args *LookupLogGroupOutputArgs, opts ...InvokeOption) LookupLogGroupResultOutput
> Note: This function is named LookupLogGroup
in the Go SDK.
public static class GetLogGroup
{
public static Task<GetLogGroupResult> InvokeAsync(GetLogGroupArgs args, InvokeOptions? opts = null)
public static Output<GetLogGroupResult> Invoke(GetLogGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogGroupResult> getLogGroup(GetLogGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:logs:getLogGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Log
Group stringName The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
- Log
Group stringName The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
- log
Group StringName The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
- log
Group stringName The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
- log_
group_ strname The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
- log
Group StringName The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.
getLogGroup Result
The following output properties are available:
- Arn string
The CloudWatch log group ARN.
- Data
Protection objectPolicy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- Kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- Log
Group Pulumi.Class Aws Native. Logs. Log Group Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- Retention
In intDays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- List<Pulumi.
Aws Native. Logs. Outputs. Log Group Tag> An array of key-value pairs to apply to this resource.
- Arn string
The CloudWatch log group ARN.
- Data
Protection interface{}Policy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- Kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- Log
Group LogClass Group Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- Retention
In intDays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- []Log
Group Tag An array of key-value pairs to apply to this resource.
- arn String
The CloudWatch log group ARN.
- data
Protection ObjectPolicy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- kms
Key StringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- log
Group LogClass Group Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- retention
In IntegerDays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- List<Log
Group Tag> An array of key-value pairs to apply to this resource.
- arn string
The CloudWatch log group ARN.
- data
Protection anyPolicy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- log
Group LogClass Group Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- retention
In numberDays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- Log
Group Tag[] An array of key-value pairs to apply to this resource.
- arn str
The CloudWatch log group ARN.
- data_
protection_ Anypolicy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- kms_
key_ strid The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- log_
group_ Logclass Group Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- retention_
in_ intdays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- Sequence[Log
Group Tag] An array of key-value pairs to apply to this resource.
- arn String
The CloudWatch log group ARN.
- data
Protection AnyPolicy The body of the policy document you want to use for this topic.
You can only add one policy per topic.
The policy must be in JSON string format.
Length Constraints: Maximum length of 30720
- kms
Key StringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- log
Group "STANDARD" | "INFREQUENT_ACCESS"Class The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class
- retention
In NumberDays The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, and 3653.
- List<Property Map>
An array of key-value pairs to apply to this resource.
Supporting Types
LogGroupClass
LogGroupTag
- Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- key str
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- value str
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
- value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.