Skip to main content

Class: AuditLogSinkSpec

account.v1.AuditLogSinkSpec

AuditLogSinkSpec is only used by Audit Log

Properties​

enabled​

• enabled: boolean

Enabled indicates whether the sink is enabled or not.


kinesisSink​

• Optional kinesisSink: null | $Properties

The KinesisSpec when destination_type is Kinesis


name​

• name: string

Name of the sink e.g. "audit_log_01"


pubSubSink​

• Optional pubSubSink: null | $Properties

The PubSubSpec when destination_type is PubSub


sinkType​

• Optional sinkType: "kinesisSink" | "pubSubSink"

AuditLogSinkSpec sinkType.

Methods​

toJSON​

▸ toJSON(): Object

Converts this AuditLogSinkSpec to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): AuditLogSinkSpec & $Shape

Creates a new AuditLogSinkSpec instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

AuditLogSinkSpec & $Shape

AuditLogSinkSpec instance

▸ create(properties?): AuditLogSinkSpec

Parameters​

NameType
properties?$Properties

Returns​

AuditLogSinkSpec


decode​

▸ decode(reader, length?): AuditLogSinkSpec & $Shape

Decodes an AuditLogSinkSpec message from the specified reader or buffer.

Parameters​

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

Returns​

AuditLogSinkSpec & $Shape

AuditLogSinkSpec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): AuditLogSinkSpec & $Shape

Decodes an AuditLogSinkSpec message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

AuditLogSinkSpec & $Shape

AuditLogSinkSpec

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 AuditLogSinkSpec message. Does not implicitly temporal.api.cloud.account.v1.AuditLogSinkSpec.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): AuditLogSinkSpec

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

AuditLogSinkSpec

AuditLogSinkSpec


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageAuditLogSinkSpecAuditLogSinkSpec
options?IConversionOptionsConversion options

Returns​

Object

Plain object