Class CfnDeliverySource
This structure contains information about one delivery source in your account.
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeliverySource : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnDeliverySource
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
A delivery source is an AWS resource that sends logs to an AWS destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose.
Only some AWS services support being configured as a delivery source. These services are listed as Supported [V2 Permissions] in the table at Enabling logging from AWS services.
To configure logs delivery between a supported AWS service and a destination, you must do the following:
You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverysource.html
CloudformationResource: AWS::Logs::DeliverySource
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.Logs;
var cfnDeliverySource = new CfnDeliverySource(this, "MyCfnDeliverySource", new CfnDeliverySourceProps {
Name = "name",
// the properties below are optional
LogType = "logType",
ResourceArn = "resourceArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnDeliverySource(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDeliverySource(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnDeliverySource(Construct, String, ICfnDeliverySourceProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) that uniquely identifies this delivery source. |
AttrResourceArns | This array contains the ARN of the AWS resource that sends logs and is represented by this delivery source. |
AttrService | The AWS service that is sending logs. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
LogType | The type of log that the source is sending. |
Name | The unique name of the delivery source. |
ResourceArn | The Amazon Resource Name (ARN) that uniquely identifies this delivery source. |
Tags | The tags that have been assigned to this delivery source. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDeliverySource(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDeliverySource(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDeliverySource(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDeliverySource(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnDeliverySource(Construct, String, ICfnDeliverySourceProps)
public CfnDeliverySource(Construct scope, string id, ICfnDeliverySourceProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnDeliverySourceProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrResourceArns
This array contains the ARN of the AWS resource that sends logs and is represented by this delivery source.
public virtual string[] AttrResourceArns { get; }
Property Value
System.String[]
Remarks
Currently, only one ARN can be in the array.
CloudformationAttribute: ResourceArns
AttrService
The AWS service that is sending logs.
public virtual string AttrService { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Service
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
LogType
The type of log that the source is sending.
public virtual string LogType { get; set; }
Property Value
System.String
Name
The unique name of the delivery source.
public virtual string Name { get; set; }
Property Value
System.String
ResourceArn
The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
public virtual string ResourceArn { get; set; }
Property Value
System.String
Tags
The tags that have been assigned to this delivery source.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>