Skip to main content

Class: S3Spec

sink.v1.S3Spec

Represents a S3Spec.

Implements

Constructors

constructor

new S3Spec(properties?): S3Spec

Constructs a new S3Spec.

Parameters

NameTypeDescription
properties?IS3SpecProperties to set

Returns

S3Spec

Properties

awsAccountId

awsAccountId: string

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

Implementation of

IS3Spec.awsAccountId


bucketName

bucketName: string

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

Implementation of

IS3Spec.bucketName


kmsArn

kmsArn: string

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

Implementation of

IS3Spec.kmsArn


region

region: string

The region where the S3 bucket is located.

Implementation of

IS3Spec.region


roleName

roleName: string

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

Implementation of

IS3Spec.roleName

Methods

toJSON

toJSON(): Object

Converts this S3Spec to JSON.

Returns

Object

JSON object


create

create(properties?): S3Spec

Creates a new S3Spec instance using the specified properties.

Parameters

NameTypeDescription
properties?IS3SpecProperties to set

Returns

S3Spec

S3Spec instance


decode

decode(reader, length?): S3Spec

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

S3Spec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): S3Spec

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

S3Spec

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
messageIS3SpecS3Spec 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
messageIS3SpecS3Spec 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for S3Spec

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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