Skip to content
v2.278.0

MagneticStoreWritePropertiesProperty Struct ​

The set of properties on a table for configuring magnetic store writes.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_timestream as timestream } from 'aws-cdk-lib';
const magneticStoreWritePropertiesProperty: timestream.CfnTable.MagneticStoreWritePropertiesProperty = {
  enableMagneticStoreWrites: false,

  // the properties below are optional
  magneticStoreRejectedDataLocation: {
    s3Configuration: {
      bucketName: 'bucketName',
      encryptionOption: 'encryptionOption',

      // the properties below are optional
      kmsKeyId: 'kmsKeyId',
      objectKeyPrefix: 'objectKeyPrefix',
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_timestream as timestream

magnetic_store_write_properties_property = timestream.CfnTable.MagneticStoreWritePropertiesProperty(
    enable_magnetic_store_writes=False,

    # the properties below are optional
    magnetic_store_rejected_data_location=timestream.CfnTable.MagneticStoreRejectedDataLocationProperty(
        s3_configuration=timestream.CfnTable.S3ConfigurationProperty(
            bucket_name="bucketName",
            encryption_option="encryptionOption",

            # the properties below are optional
            kms_key_id="kmsKeyId",
            object_key_prefix="objectKeyPrefix"
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.timestream.*;

MagneticStoreWritePropertiesProperty magneticStoreWritePropertiesProperty = MagneticStoreWritePropertiesProperty.builder()
        .enableMagneticStoreWrites(false)

        // the properties below are optional
        .magneticStoreRejectedDataLocation(MagneticStoreRejectedDataLocationProperty.builder()
                .s3Configuration(S3ConfigurationProperty.builder()
                        .bucketName("bucketName")
                        .encryptionOption("encryptionOption")

                        // the properties below are optional
                        .kmsKeyId("kmsKeyId")
                        .objectKeyPrefix("objectKeyPrefix")
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Timestream;

var magneticStoreWritePropertiesProperty = new MagneticStoreWritePropertiesProperty {
    EnableMagneticStoreWrites = false,

    // the properties below are optional
    MagneticStoreRejectedDataLocation = new MagneticStoreRejectedDataLocationProperty {
        S3Configuration = new S3ConfigurationProperty {
            BucketName = "bucketName",
            EncryptionOption = "encryptionOption",

            // the properties below are optional
            KmsKeyId = "kmsKeyId",
            ObjectKeyPrefix = "objectKeyPrefix"
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

magneticStoreWritePropertiesProperty := &MagneticStoreWritePropertiesProperty{
	EnableMagneticStoreWrites: jsii.Boolean(false),

	// the properties below are optional
	MagneticStoreRejectedDataLocation: &MagneticStoreRejectedDataLocationProperty{
		S3Configuration: &S3ConfigurationProperty{
			BucketName: jsii.String("bucketName"),
			EncryptionOption: jsii.String("encryptionOption"),

			// the properties below are optional
			KmsKeyId: jsii.String("kmsKeyId"),
			ObjectKeyPrefix: jsii.String("objectKeyPrefix"),
		},
	},
}

Properties ​

enableMagneticStoreWritesboolean | IResolvableenable_magnetic_store_writestyping.Union[bool, IResolvable]enableMagneticStoreWritesBooleanEnableMagneticStoreWritesboolEnableMagneticStoreWritesinterface{} required #
A flag to enable magnetic store writes.
magneticStoreRejectedDataLocationoptionalIResolvable | CfnTable.MagneticStoreRejectedDataLocationPropertymagnetic_store_rejected_data_locationoptionaltyping.Union[IResolvable, MagneticStoreRejectedDataLocationProperty]magneticStoreRejectedDataLocationoptionalIResolvableMagneticStoreRejectedDataLocationoptionalIResolvableMagneticStoreRejectedDataLocationoptionalinterface{} #
The location to write error reports for records rejected asynchronously during magnetic store writes.