Skip to main content

Class: S3Spec

sink.v1.S3Spec

Represents a S3Spec.

Properties​

awsAccountId​

• awsAccountId: string

The AWS account ID associated with the S3 bucket and the assumed role.


bucketName​

• bucketName: string

The name of the destination S3 bucket where Temporal will send data.


kmsArn​

• kmsArn: string

The AWS Key Management Service (KMS) ARN used for encryption.


region​

• region: string

The region where the S3 bucket is located.


roleName​

• roleName: string

The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket.

Methods​

toJSON​

▸ toJSON(): Object

Converts this S3Spec to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): S3Spec & $Properties

Creates a new S3Spec instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

S3Spec & $Properties

S3Spec instance

▸ create(properties?): S3Spec

Parameters​

NameType
properties?$Properties

Returns​

S3Spec


decode​

▸ decode(reader, length?): S3Spec & $Properties

Decodes a S3Spec message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

S3Spec & $Properties

S3Spec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): S3Spec & $Properties

Decodes a S3Spec message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

S3Spec & $Properties

S3Spec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified S3Spec message. Does not implicitly temporal.api.cloud.sink.v1.S3Spec.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesS3Spec message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified S3Spec message, length delimited. Does not implicitly temporal.api.cloud.sink.v1.S3Spec.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesS3Spec message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): S3Spec

Creates a S3Spec message from a plain object. Also converts values to their respective internal types.

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

S3Spec

S3Spec


toObject​

▸ toObject(message, options?): Object

Creates a plain object from a S3Spec message. Also converts values to other types if specified.

Parameters​

NameTypeDescription
messageS3SpecS3Spec
options?IConversionOptionsConversion options

Returns​

Object

Plain object