CrossAccountDestinationProps
- class aws_cdk.aws_logs.CrossAccountDestinationProps(*, role, target_arn, destination_name=None)
Bases:
object
Properties for a CrossAccountDestination.
- Parameters:
role (
IRole
) – The role to assume that grants permissions to write to ‘target’. The role must be assumable by ‘logs.{REGION}.amazonaws.com’.target_arn (
str
) – The log destination target’s ARN.destination_name (
Optional
[str
]) – The name of the log destination. Default: Automatically generated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_iam as iam from aws_cdk import aws_logs as logs # role: iam.Role cross_account_destination_props = logs.CrossAccountDestinationProps( role=role, target_arn="targetArn", # the properties below are optional destination_name="destinationName" )
Attributes
- destination_name
The name of the log destination.
- Default:
Automatically generated
- role
The role to assume that grants permissions to write to ‘target’.
The role must be assumable by ‘logs.{REGION}.amazonaws.com’.
- target_arn
The log destination target’s ARN.