Class CrossAccountDestinationProps
Properties for a CrossAccountDestination.
Inheritance
System.Object
CrossAccountDestinationProps
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CrossAccountDestinationProps : Object, ICrossAccountDestinationProps
Syntax (vb)
Public Class CrossAccountDestinationProps
Inherits Object
Implements ICrossAccountDestinationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.Logs;
Role role;
var crossAccountDestinationProps = new CrossAccountDestinationProps {
Role = role,
TargetArn = "targetArn",
// the properties below are optional
DestinationName = "destinationName"
};
Synopsis
Constructors
CrossAccountDestinationProps() |
Properties
DestinationName | The name of the log destination. |
Role | The role to assume that grants permissions to write to 'target'. |
TargetArn | The log destination target's ARN. |
Constructors
CrossAccountDestinationProps()
public CrossAccountDestinationProps()
Properties
DestinationName
The name of the log destination.
public string DestinationName { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated
Role
The role to assume that grants permissions to write to 'target'.
public IRole Role { get; set; }
Property Value
Remarks
The role must be assumable by 'logs.{REGION}.amazonaws.com'.
TargetArn
The log destination target's ARN.
public string TargetArn { get; set; }
Property Value
System.String