Class: AuditLogSinkSpec
AuditLogSinkSpec is only used by Audit Log
Properties
enabled
enabled:
boolean
Enabled indicates whether the sink is enabled or not.
kinesisSink?
optionalkinesisSink?:$Properties|null
The KinesisSpec when destination_type is Kinesis
name
name:
string
Name of the sink e.g. "audit_log_01"
pubSubSink?
optionalpubSubSink?:$Properties|null
The PubSubSpec when destination_type is PubSub
sinkType?
optionalsinkType?:"kinesisSink"|"pubSubSink"
AuditLogSinkSpec sinkType.
Methods
toJSON()
toJSON():
object
Converts this AuditLogSinkSpec to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):AuditLogSinkSpec&$Shape
Creates a new AuditLogSinkSpec instance using the specified properties.
Parameters
properties?
Properties to set
Returns
AuditLogSinkSpec & $Shape
AuditLogSinkSpec instance
Call Signature
staticcreate(properties?):AuditLogSinkSpec
Creates a new AuditLogSinkSpec instance using the specified properties.
Parameters
properties?
Properties to set
Returns
AuditLogSinkSpec
AuditLogSinkSpec instance
decode()
staticdecode(reader,length?):AuditLogSinkSpec&$Shape
Decodes an AuditLogSinkSpec message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message 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()
staticdecodeDelimited(reader):AuditLogSinkSpec&$Shape
Decodes an AuditLogSinkSpec message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader 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()
staticencode(message,writer?):Writer
Encodes the specified AuditLogSinkSpec message. Does not implicitly temporal.api.cloud.account.v1.AuditLogSinkSpec.verify|verify messages.
Parameters
message
AuditLogSinkSpec message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified AuditLogSinkSpec message, length delimited. Does not implicitly temporal.api.cloud.account.v1.AuditLogSinkSpec.verify|verify messages.
Parameters
message
AuditLogSinkSpec message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):AuditLogSinkSpec
Creates an AuditLogSinkSpec message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
AuditLogSinkSpec
AuditLogSinkSpec
toObject()
statictoObject(message,options?):object
Creates a plain object from an AuditLogSinkSpec message. Also converts values to other types if specified.
Parameters
message
AuditLogSinkSpec
AuditLogSinkSpec
options?
IConversionOptions
Conversion options
Returns
object
Plain object