# Fastly::Logging::S3 Manage a Fastly service ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "Fastly::Logging::S3",
    "Properties" : {
        "AccessKey" : String,
        "Acl" : String,
        "BucketName" : String,
        "CompressionCodec" : String,
        "Domain" : String,
        "Format" : String,
        "FormatVersion" : Integer,
        "GzipLevel" : Integer,
        "IamRole" : String,
        "MessageType" : String,
        "Name" : String,
        "Path" : String,
        "Period" : Integer,
        "Placement" : String,
        "PublicKey" : String,
        "Redundancy" : String,
        "ResponseCondition" : String,
        "SecretKey" : String,
        "ServerSideEncryption" : String,
        "ServerSideEncryptionKmsKeyId" : String,
        "ServiceId" : String,
        "VersionId" : String,
        "Version" : String
    }
}
### YAML
Type: Fastly::Logging::S3
Properties:
    AccessKey: String
    Acl: String
    BucketName: String
    CompressionCodec: String
    Domain: String
    Format: String
    FormatVersion: Integer
    GzipLevel: Integer
    IamRole: String
    MessageType: String
    Name: String
    Path: String
    Period: Integer
    Placement: String
    PublicKey: String
    Redundancy: String
    ResponseCondition: String
    SecretKey: String
    ServerSideEncryption: String
    ServerSideEncryptionKmsKeyId: String
    ServiceId: String
    VersionId: String
    Version: String
## Properties #### AccessKey The access key for your S3 account. Not required if iam_role is provided. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Acl The access control list (ACL) specific request header _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### BucketName The bucket name for S3 account. _Required_: Yes _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### CompressionCodec The codec used for compressing your logs. _Required_: No _Type_: String _Allowed Values_: zstd | snappy | gzip _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Domain The domain of the Amazon S3 endpoint. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Format A Fastly log format string. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### FormatVersion The version of the custom logging format used for the configured endpoint. _Required_: No _Type_: Integer _Allowed Values_: 1 | 2 _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### GzipLevel The level of gzip encoding when sending logs (default 0, no compression). _Required_: No _Type_: Integer _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### IamRole The Amazon Resource Name (ARN) for the IAM role granting Fastly access to S3. Not required if access_key and secret_key are provided. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### MessageType How the message should be formatted. [Default classic] _Required_: No _Type_: String _Allowed Values_: classic | loggly | logplex | blank _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Name The name for the real-time logging configuration. _Required_: No _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Path The path to upload logs to. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Period How frequently log files are finalized so they can be available for reading (in seconds). _Required_: No _Type_: Integer _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Placement Where in the generated VCL the logging call should be placed. _Required_: No _Type_: String _Allowed Values_: none | waf_debug _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### PublicKey A PGP public key that Fastly will use to encrypt your log files before writing them to disk. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Redundancy The S3 redundancy level _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ResponseCondition The name of an existing condition in the configured endpoint, or leave blank to always execute. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### SecretKey The secret key for your S3 account. Not required if iam_role is provided. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ServerSideEncryption Set this to AES256 or aws:kms to enable S3 Server Side Encryption. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ServerSideEncryptionKmsKeyId Optional server-side KMS Key Id. Must be set if server_side_encryption is set to aws:kms or AES256. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ServiceId Alphanumeric string identifying the service. Read-only. _Required_: No _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### VersionId Alphanumeric string identifying the service version. _Required_: No _Type_: String _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Version Integer identifying a domain version. Read-only. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### CreatedAt Date and time in ISO 8601 format. Read-only. #### DeletedAt Date and time in ISO 8601 format. Read-only. #### UpdatedAt Date and time in ISO 8601 format. Read-only.