AWS::Logs::LogStream¶
Resource Type definition for AWS::Logs::LogStream
Generated by cfn-typegen --out cfn_types AWS::Logs::LogStream into cfn_types/logs.py:
# Generated by cfn-typegen from the CloudFormation registry schemas. Do not edit.
# fmt: off
# ruff: noqa
"""AWS::Logs resources."""
from typing import Any, Literal, NotRequired, Unpack
from typing_extensions import TypedDict
from cfn_typed.base import DeletionPolicy, DependsOn, ResourceAttrs, UpdateReplacePolicy, build
from cfn_typed.intrinsics import Expr
CONSTRAINTS:dict[str,Any]={
}
ATTRIBUTES:dict[str,Any]={"AWS::Logs::LogStream":["LogGroupName","LogStreamName"]}
RULES:dict[str,Any]={}
Nested types (3)
These are defined above the properties in the generated module.
class LogStreamProps(TypedDict, closed=True):
'Resource Type definition for AWS::Logs::LogStream'
LogStreamName: NotRequired[Expr[str]]
'The name of the log stream.'
LogGroupName: Expr[str]
'The name of the log group where the log stream is created.'
class LogStream(ResourceAttrs):
'Resource Type definition for AWS::Logs::LogStream'
Type: Literal['AWS::Logs::LogStream']
Properties: LogStreamProps
def log_stream(
*,
depends_on: DependsOn | None = None,
deletion_policy: DeletionPolicy | None = None,
update_replace_policy: UpdateReplacePolicy | None = None,
condition: str | None = None,
metadata: dict[str, Any] | None = None,
**props: Unpack[LogStreamProps],
) -> LogStream:
return build('AWS::Logs::LogStream', props, depends_on, deletion_policy, update_replace_policy, condition, metadata)