Show / Hide Table of Contents

Interface ILocation

An interface that represents the location of a specific object in an S3 Bucket.

Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILocation
Syntax (vb)
Public Interface ILocation
Remarks

ExampleMetadata: fixture=default infused

Examples
var bucket = new Bucket(this, "memoryBucket", new BucketProps {
                BucketName = "test-memory",
                RemovalPolicy = RemovalPolicy.DESTROY,
                AutoDeleteObjects = true
            });

            var topic = new Topic(this, "topic");

            // Create a custom semantic memory strategy
            var selfManagedStrategy = MemoryStrategy.UsingSelfManaged(new SelfManagedStrategyProps {
                Name = "selfManagedStrategy",
                Description = "self managed memory strategy",
                HistoricalContextWindowSize = 5,
                InvocationConfiguration = new InvocationConfiguration {
                    Topic = topic,
                    S3Location = new Location {
                        BucketName = bucket.BucketName,
                        ObjectKey = "memory/"
                    }
                },
                TriggerConditions = new TriggerConditions {
                    MessageBasedTrigger = 1,
                    TimeBasedTrigger = Duration.Seconds(10),
                    TokenBasedTrigger = 100
                }
            });

            // Create memory with custom strategy
            var memory = new Memory(this, "MyMemory", new MemoryProps {
                MemoryName = "my-custom-memory",
                Description = "Memory with custom strategy",
                ExpirationDuration = Duration.Days(90),
                MemoryStrategies = new [] { selfManagedStrategy }
            });

Synopsis

Properties

BucketName

The name of the S3 Bucket the object is in.

ObjectKey

The path inside the Bucket where the object is located at.

ObjectVersion

The S3 object version.

Properties

BucketName

The name of the S3 Bucket the object is in.

string BucketName { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

ObjectKey

The path inside the Bucket where the object is located at.

string ObjectKey { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

ObjectVersion

The S3 object version.

string? ObjectVersion { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

Back to top Generated by DocFX