AWS Native
getLogGroup
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.
- Kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 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.
- Kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 1827, and 3653.
- []Log
Group Tag An array of key-value pairs to apply to this resource.
- arn String
The CloudWatch log group ARN.
- kms
Key StringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 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.
- kms
Key stringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 1827, and 3653.
- Log
Group Tag[] An array of key-value pairs to apply to this resource.
- arn str
The CloudWatch log group ARN.
- kms_
key_ strid The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 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.
- kms
Key StringId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- 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, 1827, and 3653.
- List<Property Map>
An array of key-value pairs to apply to this resource.
Supporting Types
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
- https://github.com/pulumi/pulumi-aws-native
- License
- Apache-2.0