Class CfnDeliveryDestinationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnDeliveryDestinationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryDestinationMixinProps>
- Enclosing interface:
CfnDeliveryDestinationMixinProps
@Stability(Stable)
public static final class CfnDeliveryDestinationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryDestinationMixinProps>
A builder for
CfnDeliveryDestinationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryDestinationPolicy(IResolvable deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationPolicy()deliveryDestinationPolicy(CfnDeliveryDestinationPropsMixin.DestinationPolicyProperty deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationPolicy()deliveryDestinationType(String deliveryDestinationType) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationType()destinationResourceArn(String destinationResourceArn) Sets the value ofCfnDeliveryDestinationMixinProps.getDestinationResourceArn()Sets the value ofCfnDeliveryDestinationMixinProps.getName()outputFormat(String outputFormat) Sets the value ofCfnDeliveryDestinationMixinProps.getOutputFormat()Sets the value ofCfnDeliveryDestinationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deliveryDestinationPolicy
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder deliveryDestinationPolicy(IResolvable deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationPolicy()- Parameters:
deliveryDestinationPolicy- An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. For examples of this policy, see Examples in the CloudWatch Logs API Reference.- Returns:
this
-
deliveryDestinationPolicy
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder deliveryDestinationPolicy(CfnDeliveryDestinationPropsMixin.DestinationPolicyProperty deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationPolicy()- Parameters:
deliveryDestinationPolicy- An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. For examples of this policy, see Examples in the CloudWatch Logs API Reference.- Returns:
this
-
deliveryDestinationType
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder deliveryDestinationType(String deliveryDestinationType) Sets the value ofCfnDeliveryDestinationMixinProps.getDeliveryDestinationType()- Parameters:
deliveryDestinationType- Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.- Returns:
this
-
destinationResourceArn
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder destinationResourceArn(String destinationResourceArn) Sets the value ofCfnDeliveryDestinationMixinProps.getDestinationResourceArn()- Parameters:
destinationResourceArn- The ARN of the AWS destination that this delivery destination represents. That AWS destination can be a log group in CloudWatch Logs , an Amazon S3 bucket, or a Firehose stream.- Returns:
this
-
name
Sets the value ofCfnDeliveryDestinationMixinProps.getName()- Parameters:
name- The name of this delivery destination.- Returns:
this
-
outputFormat
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder outputFormat(String outputFormat) Sets the value ofCfnDeliveryDestinationMixinProps.getOutputFormat()- Parameters:
outputFormat- The format of the logs that are sent to this delivery destination.- Returns:
this
-
tags
@Stability(Stable) public CfnDeliveryDestinationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnDeliveryDestinationMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the delivery destination. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryDestinationMixinProps>- Returns:
- a new instance of
CfnDeliveryDestinationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-