CfnServerLogsMixin
- class aws_cdk.mixins_preview.aws_transfer.mixins.CfnServerLogsMixin(log_type, log_delivery)
Bases:
MixinInstantiates an auto-scaling virtual server based on the selected file transfer protocol in AWS .
When you make updates to your file transfer protocol-enabled server or when you work with users, use the service-generated
ServerIdproperty that is assigned to the newly created server.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html
- CloudformationResource:
AWS::Transfer::Server
- Mixin:
true
- 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.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_transfer import mixins as transfer_mixins # logs_delivery: logs.ILogsDelivery cfn_server_logs_mixin = transfer_mixins.CfnServerLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::Transfer::Server.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- TRANSFER_LOGS = <aws_cdk.mixins_preview.aws_transfer.mixins.CfnServerTransferLogs object>
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental