firehose.d.ts 160 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class Firehose extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: Firehose.Types.ClientConfiguration)
  13. config: Config & Firehose.Types.ClientConfiguration;
  14. /**
  15. * Creates a Firehose delivery stream. By default, you can create up to 50 delivery streams per Amazon Web Services Region. This is an asynchronous operation that immediately returns. The initial status of the delivery stream is CREATING. After the delivery stream is created, its status is ACTIVE and it now accepts data. If the delivery stream creation fails, the status transitions to CREATING_FAILED. Attempts to send data to a delivery stream that is not in the ACTIVE state cause an exception. To check the state of a delivery stream, use DescribeDeliveryStream. If the status of a delivery stream is CREATING_FAILED, this status doesn't change, and you can't invoke CreateDeliveryStream again on it. However, you can invoke the DeleteDeliveryStream operation to delete it. A Firehose delivery stream can be configured to receive records directly from providers using PutRecord or PutRecordBatch, or it can be configured to use an existing Kinesis stream as its source. To specify a Kinesis data stream as input, set the DeliveryStreamType parameter to KinesisStreamAsSource, and provide the Kinesis stream Amazon Resource Name (ARN) and role ARN in the KinesisStreamSourceConfiguration parameter. To create a delivery stream with server-side encryption (SSE) enabled, include DeliveryStreamEncryptionConfigurationInput in your request. This is optional. You can also invoke StartDeliveryStreamEncryption to turn on SSE for an existing delivery stream that doesn't have SSE enabled. A delivery stream is configured with a single destination, such as Amazon Simple Storage Service (Amazon S3), Amazon Redshift, Amazon OpenSearch Service, Amazon OpenSearch Serverless, Splunk, and any custom HTTP endpoint or HTTP endpoints owned by or supported by third-party service providers, including Datadog, Dynatrace, LogicMonitor, MongoDB, New Relic, and Sumo Logic. You must specify only one of the following destination configuration parameters: ExtendedS3DestinationConfiguration, S3DestinationConfiguration, ElasticsearchDestinationConfiguration, RedshiftDestinationConfiguration, or SplunkDestinationConfiguration. When you specify S3DestinationConfiguration, you can also provide the following optional values: BufferingHints, EncryptionConfiguration, and CompressionFormat. By default, if no BufferingHints value is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly. For example, record boundaries might be such that the size is a little over or under the configured buffering size. By default, no encryption is performed. We strongly recommend that you enable encryption to ensure secure data storage in Amazon S3. A few notes about Amazon Redshift as a destination: An Amazon Redshift destination requires an S3 bucket as intermediate location. Firehose first delivers data to Amazon S3 and then uses COPY syntax to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration parameter. The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats. We strongly recommend that you use the user name and password you provide exclusively with Firehose, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions. Firehose assumes the IAM role that is configured as part of the destination. The role should allow the Firehose principal to assume the role, and the role should have permissions that allow the service to deliver the data. For more information, see Grant Firehose Access to an Amazon S3 Destination in the Amazon Firehose Developer Guide.
  16. */
  17. createDeliveryStream(params: Firehose.Types.CreateDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.CreateDeliveryStreamOutput) => void): Request<Firehose.Types.CreateDeliveryStreamOutput, AWSError>;
  18. /**
  19. * Creates a Firehose delivery stream. By default, you can create up to 50 delivery streams per Amazon Web Services Region. This is an asynchronous operation that immediately returns. The initial status of the delivery stream is CREATING. After the delivery stream is created, its status is ACTIVE and it now accepts data. If the delivery stream creation fails, the status transitions to CREATING_FAILED. Attempts to send data to a delivery stream that is not in the ACTIVE state cause an exception. To check the state of a delivery stream, use DescribeDeliveryStream. If the status of a delivery stream is CREATING_FAILED, this status doesn't change, and you can't invoke CreateDeliveryStream again on it. However, you can invoke the DeleteDeliveryStream operation to delete it. A Firehose delivery stream can be configured to receive records directly from providers using PutRecord or PutRecordBatch, or it can be configured to use an existing Kinesis stream as its source. To specify a Kinesis data stream as input, set the DeliveryStreamType parameter to KinesisStreamAsSource, and provide the Kinesis stream Amazon Resource Name (ARN) and role ARN in the KinesisStreamSourceConfiguration parameter. To create a delivery stream with server-side encryption (SSE) enabled, include DeliveryStreamEncryptionConfigurationInput in your request. This is optional. You can also invoke StartDeliveryStreamEncryption to turn on SSE for an existing delivery stream that doesn't have SSE enabled. A delivery stream is configured with a single destination, such as Amazon Simple Storage Service (Amazon S3), Amazon Redshift, Amazon OpenSearch Service, Amazon OpenSearch Serverless, Splunk, and any custom HTTP endpoint or HTTP endpoints owned by or supported by third-party service providers, including Datadog, Dynatrace, LogicMonitor, MongoDB, New Relic, and Sumo Logic. You must specify only one of the following destination configuration parameters: ExtendedS3DestinationConfiguration, S3DestinationConfiguration, ElasticsearchDestinationConfiguration, RedshiftDestinationConfiguration, or SplunkDestinationConfiguration. When you specify S3DestinationConfiguration, you can also provide the following optional values: BufferingHints, EncryptionConfiguration, and CompressionFormat. By default, if no BufferingHints value is provided, Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly. For example, record boundaries might be such that the size is a little over or under the configured buffering size. By default, no encryption is performed. We strongly recommend that you enable encryption to ensure secure data storage in Amazon S3. A few notes about Amazon Redshift as a destination: An Amazon Redshift destination requires an S3 bucket as intermediate location. Firehose first delivers data to Amazon S3 and then uses COPY syntax to load data into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration parameter. The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats. We strongly recommend that you use the user name and password you provide exclusively with Firehose, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions. Firehose assumes the IAM role that is configured as part of the destination. The role should allow the Firehose principal to assume the role, and the role should have permissions that allow the service to deliver the data. For more information, see Grant Firehose Access to an Amazon S3 Destination in the Amazon Firehose Developer Guide.
  20. */
  21. createDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.CreateDeliveryStreamOutput) => void): Request<Firehose.Types.CreateDeliveryStreamOutput, AWSError>;
  22. /**
  23. * Deletes a delivery stream and its data. You can delete a delivery stream only if it is in one of the following states: ACTIVE, DELETING, CREATING_FAILED, or DELETING_FAILED. You can't delete a delivery stream that is in the CREATING state. To check the state of a delivery stream, use DescribeDeliveryStream. DeleteDeliveryStream is an asynchronous API. When an API request to DeleteDeliveryStream succeeds, the delivery stream is marked for deletion, and it goes into the DELETING state.While the delivery stream is in the DELETING state, the service might continue to accept records, but it doesn't make any guarantees with respect to delivering the data. Therefore, as a best practice, first stop any applications that are sending records before you delete a delivery stream. Removal of a delivery stream that is in the DELETING state is a low priority operation for the service. A stream may remain in the DELETING state for several minutes. Therefore, as a best practice, applications should not wait for streams in the DELETING state to be removed.
  24. */
  25. deleteDeliveryStream(params: Firehose.Types.DeleteDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.DeleteDeliveryStreamOutput) => void): Request<Firehose.Types.DeleteDeliveryStreamOutput, AWSError>;
  26. /**
  27. * Deletes a delivery stream and its data. You can delete a delivery stream only if it is in one of the following states: ACTIVE, DELETING, CREATING_FAILED, or DELETING_FAILED. You can't delete a delivery stream that is in the CREATING state. To check the state of a delivery stream, use DescribeDeliveryStream. DeleteDeliveryStream is an asynchronous API. When an API request to DeleteDeliveryStream succeeds, the delivery stream is marked for deletion, and it goes into the DELETING state.While the delivery stream is in the DELETING state, the service might continue to accept records, but it doesn't make any guarantees with respect to delivering the data. Therefore, as a best practice, first stop any applications that are sending records before you delete a delivery stream. Removal of a delivery stream that is in the DELETING state is a low priority operation for the service. A stream may remain in the DELETING state for several minutes. Therefore, as a best practice, applications should not wait for streams in the DELETING state to be removed.
  28. */
  29. deleteDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.DeleteDeliveryStreamOutput) => void): Request<Firehose.Types.DeleteDeliveryStreamOutput, AWSError>;
  30. /**
  31. * Describes the specified delivery stream and its status. For example, after your delivery stream is created, call DescribeDeliveryStream to see whether the delivery stream is ACTIVE and therefore ready for data to be sent to it. If the status of a delivery stream is CREATING_FAILED, this status doesn't change, and you can't invoke CreateDeliveryStream again on it. However, you can invoke the DeleteDeliveryStream operation to delete it. If the status is DELETING_FAILED, you can force deletion by invoking DeleteDeliveryStream again but with DeleteDeliveryStreamInput$AllowForceDelete set to true.
  32. */
  33. describeDeliveryStream(params: Firehose.Types.DescribeDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.DescribeDeliveryStreamOutput) => void): Request<Firehose.Types.DescribeDeliveryStreamOutput, AWSError>;
  34. /**
  35. * Describes the specified delivery stream and its status. For example, after your delivery stream is created, call DescribeDeliveryStream to see whether the delivery stream is ACTIVE and therefore ready for data to be sent to it. If the status of a delivery stream is CREATING_FAILED, this status doesn't change, and you can't invoke CreateDeliveryStream again on it. However, you can invoke the DeleteDeliveryStream operation to delete it. If the status is DELETING_FAILED, you can force deletion by invoking DeleteDeliveryStream again but with DeleteDeliveryStreamInput$AllowForceDelete set to true.
  36. */
  37. describeDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.DescribeDeliveryStreamOutput) => void): Request<Firehose.Types.DescribeDeliveryStreamOutput, AWSError>;
  38. /**
  39. * Lists your delivery streams in alphabetical order of their names. The number of delivery streams might be too large to return using a single call to ListDeliveryStreams. You can limit the number of delivery streams returned, using the Limit parameter. To determine whether there are more delivery streams to list, check the value of HasMoreDeliveryStreams in the output. If there are more delivery streams to list, you can request them by calling this operation again and setting the ExclusiveStartDeliveryStreamName parameter to the name of the last delivery stream returned in the last call.
  40. */
  41. listDeliveryStreams(params: Firehose.Types.ListDeliveryStreamsInput, callback?: (err: AWSError, data: Firehose.Types.ListDeliveryStreamsOutput) => void): Request<Firehose.Types.ListDeliveryStreamsOutput, AWSError>;
  42. /**
  43. * Lists your delivery streams in alphabetical order of their names. The number of delivery streams might be too large to return using a single call to ListDeliveryStreams. You can limit the number of delivery streams returned, using the Limit parameter. To determine whether there are more delivery streams to list, check the value of HasMoreDeliveryStreams in the output. If there are more delivery streams to list, you can request them by calling this operation again and setting the ExclusiveStartDeliveryStreamName parameter to the name of the last delivery stream returned in the last call.
  44. */
  45. listDeliveryStreams(callback?: (err: AWSError, data: Firehose.Types.ListDeliveryStreamsOutput) => void): Request<Firehose.Types.ListDeliveryStreamsOutput, AWSError>;
  46. /**
  47. * Lists the tags for the specified delivery stream. This operation has a limit of five transactions per second per account.
  48. */
  49. listTagsForDeliveryStream(params: Firehose.Types.ListTagsForDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.ListTagsForDeliveryStreamOutput) => void): Request<Firehose.Types.ListTagsForDeliveryStreamOutput, AWSError>;
  50. /**
  51. * Lists the tags for the specified delivery stream. This operation has a limit of five transactions per second per account.
  52. */
  53. listTagsForDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.ListTagsForDeliveryStreamOutput) => void): Request<Firehose.Types.ListTagsForDeliveryStreamOutput, AWSError>;
  54. /**
  55. * Writes a single data record into an Amazon Firehose delivery stream. To write multiple data records into a delivery stream, use PutRecordBatch. Applications using these operations are referred to as producers. By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. If you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Firehose Limits. Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics. You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KiB in size, and any kind of data. For example, it can be a segment from a log file, geographic location data, website clickstream data, and so on. Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination. The PutRecord operation returns a RecordId, which is a unique string assigned to each record. Producer applications can use this ID for purposes such as auditability and investigation. If the PutRecord operation throws a ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream. Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations. Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it tries to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available. Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.
  56. */
  57. putRecord(params: Firehose.Types.PutRecordInput, callback?: (err: AWSError, data: Firehose.Types.PutRecordOutput) => void): Request<Firehose.Types.PutRecordOutput, AWSError>;
  58. /**
  59. * Writes a single data record into an Amazon Firehose delivery stream. To write multiple data records into a delivery stream, use PutRecordBatch. Applications using these operations are referred to as producers. By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. If you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Firehose Limits. Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics. You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KiB in size, and any kind of data. For example, it can be a segment from a log file, geographic location data, website clickstream data, and so on. Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination. The PutRecord operation returns a RecordId, which is a unique string assigned to each record. Producer applications can use this ID for purposes such as auditability and investigation. If the PutRecord operation throws a ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream. Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations. Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it tries to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available. Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.
  60. */
  61. putRecord(callback?: (err: AWSError, data: Firehose.Types.PutRecordOutput) => void): Request<Firehose.Types.PutRecordOutput, AWSError>;
  62. /**
  63. * Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers. Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics. For information about service quota, see Amazon Firehose Quota. Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before base64 encoding), up to a limit of 4 MB for the entire request. These limits cannot be changed. You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data. For example, it could be a segment from a log file, geographic location data, website clickstream data, and so on. Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination. The PutRecordBatch response includes a count of failed records, FailedPutCount, and an array of responses, RequestResponses. Even if the PutRecordBatch call succeeds, the value of FailedPutCount may be greater than 0, indicating that there are records for which the operation didn't succeed. Each entry in the RequestResponses array provides additional information about the processed record. It directly correlates with a record in the request array using the same ordering, from the top to the bottom. The response array always includes the same number of records as the request array. RequestResponses includes both successfully and unsuccessfully processed records. Firehose tries to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records. A successfully processed record includes a RecordId value, which is unique for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error, and is one of the following values: ServiceUnavailableException or InternalFailure. ErrorMessage provides more detailed information about the error. If there is an internal server error or a timeout, the write might have completed or it might have failed. If FailedPutCount is greater than 0, retry the request, resending only those records that might have failed processing. This minimizes the possible duplicate records and also reduces the total bytes sent (and corresponding charges). We recommend that you handle any duplicates at the destination. If PutRecordBatch throws ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream. Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations. Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available. Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.
  64. */
  65. putRecordBatch(params: Firehose.Types.PutRecordBatchInput, callback?: (err: AWSError, data: Firehose.Types.PutRecordBatchOutput) => void): Request<Firehose.Types.PutRecordBatchOutput, AWSError>;
  66. /**
  67. * Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers. Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics. For information about service quota, see Amazon Firehose Quota. Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before base64 encoding), up to a limit of 4 MB for the entire request. These limits cannot be changed. You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data. For example, it could be a segment from a log file, geographic location data, website clickstream data, and so on. Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination. The PutRecordBatch response includes a count of failed records, FailedPutCount, and an array of responses, RequestResponses. Even if the PutRecordBatch call succeeds, the value of FailedPutCount may be greater than 0, indicating that there are records for which the operation didn't succeed. Each entry in the RequestResponses array provides additional information about the processed record. It directly correlates with a record in the request array using the same ordering, from the top to the bottom. The response array always includes the same number of records as the request array. RequestResponses includes both successfully and unsuccessfully processed records. Firehose tries to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records. A successfully processed record includes a RecordId value, which is unique for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error, and is one of the following values: ServiceUnavailableException or InternalFailure. ErrorMessage provides more detailed information about the error. If there is an internal server error or a timeout, the write might have completed or it might have failed. If FailedPutCount is greater than 0, retry the request, resending only those records that might have failed processing. This minimizes the possible duplicate records and also reduces the total bytes sent (and corresponding charges). We recommend that you handle any duplicates at the destination. If PutRecordBatch throws ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream. Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations. Data records sent to Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available. Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.
  68. */
  69. putRecordBatch(callback?: (err: AWSError, data: Firehose.Types.PutRecordBatchOutput) => void): Request<Firehose.Types.PutRecordBatchOutput, AWSError>;
  70. /**
  71. * Enables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Firehose first sets the encryption status of the stream to ENABLING, and then to ENABLED. The encryption status of a delivery stream is the Status property in DeliveryStreamEncryptionConfiguration. If the operation fails, the encryption status changes to ENABLING_FAILED. You can continue to read and write data to your delivery stream while the encryption status is ENABLING, but the data is not encrypted. It can take up to 5 seconds after the encryption status changes to ENABLED before all records written to the delivery stream are encrypted. To find out whether a record or a batch of records was encrypted, check the response elements PutRecordOutput$Encrypted and PutRecordBatchOutput$Encrypted, respectively. To check the encryption status of a delivery stream, use DescribeDeliveryStream. Even if encryption is currently enabled for a delivery stream, you can still invoke this operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this method to change the CMK, and the old CMK is of type CUSTOMER_MANAGED_CMK, Firehose schedules the grant it had on the old CMK for retirement. If the new CMK is of type CUSTOMER_MANAGED_CMK, Firehose creates a grant that enables it to use the new CMK to encrypt and decrypt data and to manage the grant. For the KMS grant creation to be successful, Firehose APIs StartDeliveryStreamEncryption and CreateDeliveryStream should not be called with session credentials that are more than 6 hours old. If a delivery stream already has encryption enabled and then you invoke this operation to change the ARN of the CMK or both its type and ARN and you get ENABLING_FAILED, this only means that the attempt to change the CMK failed. In this case, encryption remains enabled with the old CMK. If the encryption status of your delivery stream is ENABLING_FAILED, you can invoke this operation again with a valid CMK. The CMK must be enabled and the key policy mustn't explicitly deny the permission for Firehose to invoke KMS encrypt and decrypt operations. You can enable SSE for a delivery stream only if it's a delivery stream that uses DirectPut as its source. The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption 13 times and StopDeliveryStreamEncryption 12 times for the same delivery stream in a 24-hour period.
  72. */
  73. startDeliveryStreamEncryption(params: Firehose.Types.StartDeliveryStreamEncryptionInput, callback?: (err: AWSError, data: Firehose.Types.StartDeliveryStreamEncryptionOutput) => void): Request<Firehose.Types.StartDeliveryStreamEncryptionOutput, AWSError>;
  74. /**
  75. * Enables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Firehose first sets the encryption status of the stream to ENABLING, and then to ENABLED. The encryption status of a delivery stream is the Status property in DeliveryStreamEncryptionConfiguration. If the operation fails, the encryption status changes to ENABLING_FAILED. You can continue to read and write data to your delivery stream while the encryption status is ENABLING, but the data is not encrypted. It can take up to 5 seconds after the encryption status changes to ENABLED before all records written to the delivery stream are encrypted. To find out whether a record or a batch of records was encrypted, check the response elements PutRecordOutput$Encrypted and PutRecordBatchOutput$Encrypted, respectively. To check the encryption status of a delivery stream, use DescribeDeliveryStream. Even if encryption is currently enabled for a delivery stream, you can still invoke this operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this method to change the CMK, and the old CMK is of type CUSTOMER_MANAGED_CMK, Firehose schedules the grant it had on the old CMK for retirement. If the new CMK is of type CUSTOMER_MANAGED_CMK, Firehose creates a grant that enables it to use the new CMK to encrypt and decrypt data and to manage the grant. For the KMS grant creation to be successful, Firehose APIs StartDeliveryStreamEncryption and CreateDeliveryStream should not be called with session credentials that are more than 6 hours old. If a delivery stream already has encryption enabled and then you invoke this operation to change the ARN of the CMK or both its type and ARN and you get ENABLING_FAILED, this only means that the attempt to change the CMK failed. In this case, encryption remains enabled with the old CMK. If the encryption status of your delivery stream is ENABLING_FAILED, you can invoke this operation again with a valid CMK. The CMK must be enabled and the key policy mustn't explicitly deny the permission for Firehose to invoke KMS encrypt and decrypt operations. You can enable SSE for a delivery stream only if it's a delivery stream that uses DirectPut as its source. The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption 13 times and StopDeliveryStreamEncryption 12 times for the same delivery stream in a 24-hour period.
  76. */
  77. startDeliveryStreamEncryption(callback?: (err: AWSError, data: Firehose.Types.StartDeliveryStreamEncryptionOutput) => void): Request<Firehose.Types.StartDeliveryStreamEncryptionOutput, AWSError>;
  78. /**
  79. * Disables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Firehose first sets the encryption status of the stream to DISABLING, and then to DISABLED. You can continue to read and write data to your stream while its status is DISABLING. It can take up to 5 seconds after the encryption status changes to DISABLED before all records written to the delivery stream are no longer subject to encryption. To find out whether a record or a batch of records was encrypted, check the response elements PutRecordOutput$Encrypted and PutRecordBatchOutput$Encrypted, respectively. To check the encryption state of a delivery stream, use DescribeDeliveryStream. If SSE is enabled using a customer managed CMK and then you invoke StopDeliveryStreamEncryption, Firehose schedules the related KMS grant for retirement and then retires it after it ensures that it is finished delivering records to the destination. The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption 13 times and StopDeliveryStreamEncryption 12 times for the same delivery stream in a 24-hour period.
  80. */
  81. stopDeliveryStreamEncryption(params: Firehose.Types.StopDeliveryStreamEncryptionInput, callback?: (err: AWSError, data: Firehose.Types.StopDeliveryStreamEncryptionOutput) => void): Request<Firehose.Types.StopDeliveryStreamEncryptionOutput, AWSError>;
  82. /**
  83. * Disables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Firehose first sets the encryption status of the stream to DISABLING, and then to DISABLED. You can continue to read and write data to your stream while its status is DISABLING. It can take up to 5 seconds after the encryption status changes to DISABLED before all records written to the delivery stream are no longer subject to encryption. To find out whether a record or a batch of records was encrypted, check the response elements PutRecordOutput$Encrypted and PutRecordBatchOutput$Encrypted, respectively. To check the encryption state of a delivery stream, use DescribeDeliveryStream. If SSE is enabled using a customer managed CMK and then you invoke StopDeliveryStreamEncryption, Firehose schedules the related KMS grant for retirement and then retires it after it ensures that it is finished delivering records to the destination. The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption 13 times and StopDeliveryStreamEncryption 12 times for the same delivery stream in a 24-hour period.
  84. */
  85. stopDeliveryStreamEncryption(callback?: (err: AWSError, data: Firehose.Types.StopDeliveryStreamEncryptionOutput) => void): Request<Firehose.Types.StopDeliveryStreamEncryptionOutput, AWSError>;
  86. /**
  87. * Adds or updates tags for the specified delivery stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. Each delivery stream can have up to 50 tags. This operation has a limit of five transactions per second per account.
  88. */
  89. tagDeliveryStream(params: Firehose.Types.TagDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.TagDeliveryStreamOutput) => void): Request<Firehose.Types.TagDeliveryStreamOutput, AWSError>;
  90. /**
  91. * Adds or updates tags for the specified delivery stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. Each delivery stream can have up to 50 tags. This operation has a limit of five transactions per second per account.
  92. */
  93. tagDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.TagDeliveryStreamOutput) => void): Request<Firehose.Types.TagDeliveryStreamOutput, AWSError>;
  94. /**
  95. * Removes tags from the specified delivery stream. Removed tags are deleted, and you can't recover them after this operation successfully completes. If you specify a tag that doesn't exist, the operation ignores it. This operation has a limit of five transactions per second per account.
  96. */
  97. untagDeliveryStream(params: Firehose.Types.UntagDeliveryStreamInput, callback?: (err: AWSError, data: Firehose.Types.UntagDeliveryStreamOutput) => void): Request<Firehose.Types.UntagDeliveryStreamOutput, AWSError>;
  98. /**
  99. * Removes tags from the specified delivery stream. Removed tags are deleted, and you can't recover them after this operation successfully completes. If you specify a tag that doesn't exist, the operation ignores it. This operation has a limit of five transactions per second per account.
  100. */
  101. untagDeliveryStream(callback?: (err: AWSError, data: Firehose.Types.UntagDeliveryStreamOutput) => void): Request<Firehose.Types.UntagDeliveryStreamOutput, AWSError>;
  102. /**
  103. * Updates the specified destination of the specified delivery stream. Use this operation to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a destination (for example, to change the bucket name of the Amazon S3 destination). The update might not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are usually effective within a few minutes. Switching between Amazon OpenSearch Service and other services is not supported. For an Amazon OpenSearch Service destination, you can only update to another Amazon OpenSearch Service destination. If the destination type is the same, Firehose merges the configuration parameters specified with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the call, the existing values are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified, then the existing EncryptionConfiguration is maintained on the destination. If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. In this case, all parameters must be specified. Firehose uses CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field, and the service updates the configuration only if the existing configuration has a version ID that matches. After the update is applied successfully, the version ID is updated, and can be retrieved using DescribeDeliveryStream. Use the new version ID to set CurrentDeliveryStreamVersionId in the next call.
  104. */
  105. updateDestination(params: Firehose.Types.UpdateDestinationInput, callback?: (err: AWSError, data: Firehose.Types.UpdateDestinationOutput) => void): Request<Firehose.Types.UpdateDestinationOutput, AWSError>;
  106. /**
  107. * Updates the specified destination of the specified delivery stream. Use this operation to change the destination type (for example, to replace the Amazon S3 destination with Amazon Redshift) or change the parameters associated with a destination (for example, to change the bucket name of the Amazon S3 destination). The update might not occur immediately. The target delivery stream remains active while the configurations are updated, so data writes to the delivery stream can continue during this process. The updated configurations are usually effective within a few minutes. Switching between Amazon OpenSearch Service and other services is not supported. For an Amazon OpenSearch Service destination, you can only update to another Amazon OpenSearch Service destination. If the destination type is the same, Firehose merges the configuration parameters specified with the destination configuration that already exists on the delivery stream. If any of the parameters are not specified in the call, the existing values are retained. For example, in the Amazon S3 destination, if EncryptionConfiguration is not specified, then the existing EncryptionConfiguration is maintained on the destination. If the destination type is not the same, for example, changing the destination from Amazon S3 to Amazon Redshift, Firehose does not merge any parameters. In this case, all parameters must be specified. Firehose uses CurrentDeliveryStreamVersionId to avoid race conditions and conflicting merges. This is a required field, and the service updates the configuration only if the existing configuration has a version ID that matches. After the update is applied successfully, the version ID is updated, and can be retrieved using DescribeDeliveryStream. Use the new version ID to set CurrentDeliveryStreamVersionId in the next call.
  108. */
  109. updateDestination(callback?: (err: AWSError, data: Firehose.Types.UpdateDestinationOutput) => void): Request<Firehose.Types.UpdateDestinationOutput, AWSError>;
  110. }
  111. declare namespace Firehose {
  112. export type AWSKMSKeyARN = string;
  113. export interface AmazonOpenSearchServerlessBufferingHints {
  114. /**
  115. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300 (5 minutes).
  116. */
  117. IntervalInSeconds?: AmazonOpenSearchServerlessBufferingIntervalInSeconds;
  118. /**
  119. * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
  120. */
  121. SizeInMBs?: AmazonOpenSearchServerlessBufferingSizeInMBs;
  122. }
  123. export type AmazonOpenSearchServerlessBufferingIntervalInSeconds = number;
  124. export type AmazonOpenSearchServerlessBufferingSizeInMBs = number;
  125. export type AmazonOpenSearchServerlessCollectionEndpoint = string;
  126. export interface AmazonOpenSearchServerlessDestinationConfiguration {
  127. /**
  128. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Serverless offering for Amazon OpenSearch Service Configuration API and for indexing documents.
  129. */
  130. RoleARN: RoleARN;
  131. /**
  132. * The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
  133. */
  134. CollectionEndpoint?: AmazonOpenSearchServerlessCollectionEndpoint;
  135. /**
  136. * The Serverless offering for Amazon OpenSearch Service index name.
  137. */
  138. IndexName: AmazonOpenSearchServerlessIndexName;
  139. /**
  140. * The buffering options. If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
  141. */
  142. BufferingHints?: AmazonOpenSearchServerlessBufferingHints;
  143. /**
  144. * The retry behavior in case Firehose is unable to deliver documents to the Serverless offering for Amazon OpenSearch Service. The default value is 300 (5 minutes).
  145. */
  146. RetryOptions?: AmazonOpenSearchServerlessRetryOptions;
  147. /**
  148. * Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to the prefix.
  149. */
  150. S3BackupMode?: AmazonOpenSearchServerlessS3BackupMode;
  151. S3Configuration: S3DestinationConfiguration;
  152. ProcessingConfiguration?: ProcessingConfiguration;
  153. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  154. VpcConfiguration?: VpcConfiguration;
  155. }
  156. export interface AmazonOpenSearchServerlessDestinationDescription {
  157. /**
  158. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
  159. */
  160. RoleARN?: RoleARN;
  161. /**
  162. * The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
  163. */
  164. CollectionEndpoint?: AmazonOpenSearchServerlessCollectionEndpoint;
  165. /**
  166. * The Serverless offering for Amazon OpenSearch Service index name.
  167. */
  168. IndexName?: AmazonOpenSearchServerlessIndexName;
  169. /**
  170. * The buffering options.
  171. */
  172. BufferingHints?: AmazonOpenSearchServerlessBufferingHints;
  173. /**
  174. * The Serverless offering for Amazon OpenSearch Service retry options.
  175. */
  176. RetryOptions?: AmazonOpenSearchServerlessRetryOptions;
  177. /**
  178. * The Amazon S3 backup mode.
  179. */
  180. S3BackupMode?: AmazonOpenSearchServerlessS3BackupMode;
  181. S3DestinationDescription?: S3DestinationDescription;
  182. ProcessingConfiguration?: ProcessingConfiguration;
  183. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  184. VpcConfigurationDescription?: VpcConfigurationDescription;
  185. }
  186. export interface AmazonOpenSearchServerlessDestinationUpdate {
  187. /**
  188. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Serverless offering for Amazon OpenSearch Service Configuration API and for indexing documents.
  189. */
  190. RoleARN?: RoleARN;
  191. /**
  192. * The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
  193. */
  194. CollectionEndpoint?: AmazonOpenSearchServerlessCollectionEndpoint;
  195. /**
  196. * The Serverless offering for Amazon OpenSearch Service index name.
  197. */
  198. IndexName?: AmazonOpenSearchServerlessIndexName;
  199. /**
  200. * The buffering options. If no value is specified, AmazonopensearchBufferingHints object default values are used.
  201. */
  202. BufferingHints?: AmazonOpenSearchServerlessBufferingHints;
  203. /**
  204. * The retry behavior in case Firehose is unable to deliver documents to the Serverless offering for Amazon OpenSearch Service. The default value is 300 (5 minutes).
  205. */
  206. RetryOptions?: AmazonOpenSearchServerlessRetryOptions;
  207. S3Update?: S3DestinationUpdate;
  208. ProcessingConfiguration?: ProcessingConfiguration;
  209. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  210. }
  211. export type AmazonOpenSearchServerlessIndexName = string;
  212. export type AmazonOpenSearchServerlessRetryDurationInSeconds = number;
  213. export interface AmazonOpenSearchServerlessRetryOptions {
  214. /**
  215. * After an initial failure to deliver to the Serverless offering for Amazon OpenSearch Service, the total amount of time during which Firehose retries delivery (including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
  216. */
  217. DurationInSeconds?: AmazonOpenSearchServerlessRetryDurationInSeconds;
  218. }
  219. export type AmazonOpenSearchServerlessS3BackupMode = "FailedDocumentsOnly"|"AllDocuments"|string;
  220. export interface AmazonopensearchserviceBufferingHints {
  221. /**
  222. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300 (5 minutes).
  223. */
  224. IntervalInSeconds?: AmazonopensearchserviceBufferingIntervalInSeconds;
  225. /**
  226. * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
  227. */
  228. SizeInMBs?: AmazonopensearchserviceBufferingSizeInMBs;
  229. }
  230. export type AmazonopensearchserviceBufferingIntervalInSeconds = number;
  231. export type AmazonopensearchserviceBufferingSizeInMBs = number;
  232. export type AmazonopensearchserviceClusterEndpoint = string;
  233. export interface AmazonopensearchserviceDestinationConfiguration {
  234. /**
  235. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Amazon OpenSearch Service Configuration API and for indexing documents.
  236. */
  237. RoleARN: RoleARN;
  238. /**
  239. * The ARN of the Amazon OpenSearch Service domain. The IAM role must have permissions for DescribeElasticsearchDomain, DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after assuming the role specified in RoleARN.
  240. */
  241. DomainARN?: AmazonopensearchserviceDomainARN;
  242. /**
  243. * The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint or the DomainARN field.
  244. */
  245. ClusterEndpoint?: AmazonopensearchserviceClusterEndpoint;
  246. /**
  247. * The ElasticsearAmazon OpenSearch Service index name.
  248. */
  249. IndexName: AmazonopensearchserviceIndexName;
  250. /**
  251. * The Amazon OpenSearch Service type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a new type for an existing index that already has another type, Firehose returns an error during run time.
  252. */
  253. TypeName?: AmazonopensearchserviceTypeName;
  254. /**
  255. * The Amazon OpenSearch Service index rotation period. Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data.
  256. */
  257. IndexRotationPeriod?: AmazonopensearchserviceIndexRotationPeriod;
  258. /**
  259. * The buffering options. If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
  260. */
  261. BufferingHints?: AmazonopensearchserviceBufferingHints;
  262. /**
  263. * The retry behavior in case Firehose is unable to deliver documents to Amazon OpenSearch Service. The default value is 300 (5 minutes).
  264. */
  265. RetryOptions?: AmazonopensearchserviceRetryOptions;
  266. /**
  267. * Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to the prefix.
  268. */
  269. S3BackupMode?: AmazonopensearchserviceS3BackupMode;
  270. S3Configuration: S3DestinationConfiguration;
  271. ProcessingConfiguration?: ProcessingConfiguration;
  272. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  273. VpcConfiguration?: VpcConfiguration;
  274. /**
  275. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  276. */
  277. DocumentIdOptions?: DocumentIdOptions;
  278. }
  279. export interface AmazonopensearchserviceDestinationDescription {
  280. /**
  281. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
  282. */
  283. RoleARN?: RoleARN;
  284. /**
  285. * The ARN of the Amazon OpenSearch Service domain.
  286. */
  287. DomainARN?: AmazonopensearchserviceDomainARN;
  288. /**
  289. * The endpoint to use when communicating with the cluster. Firehose uses either this ClusterEndpoint or the DomainARN field to send data to Amazon OpenSearch Service.
  290. */
  291. ClusterEndpoint?: AmazonopensearchserviceClusterEndpoint;
  292. /**
  293. * The Amazon OpenSearch Service index name.
  294. */
  295. IndexName?: AmazonopensearchserviceIndexName;
  296. /**
  297. * The Amazon OpenSearch Service type name. This applies to Elasticsearch 6.x and lower versions. For Elasticsearch 7.x and OpenSearch Service 1.x, there's no value for TypeName.
  298. */
  299. TypeName?: AmazonopensearchserviceTypeName;
  300. /**
  301. * The Amazon OpenSearch Service index rotation period
  302. */
  303. IndexRotationPeriod?: AmazonopensearchserviceIndexRotationPeriod;
  304. /**
  305. * The buffering options.
  306. */
  307. BufferingHints?: AmazonopensearchserviceBufferingHints;
  308. /**
  309. * The Amazon OpenSearch Service retry options.
  310. */
  311. RetryOptions?: AmazonopensearchserviceRetryOptions;
  312. /**
  313. * The Amazon S3 backup mode.
  314. */
  315. S3BackupMode?: AmazonopensearchserviceS3BackupMode;
  316. S3DestinationDescription?: S3DestinationDescription;
  317. ProcessingConfiguration?: ProcessingConfiguration;
  318. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  319. VpcConfigurationDescription?: VpcConfigurationDescription;
  320. /**
  321. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  322. */
  323. DocumentIdOptions?: DocumentIdOptions;
  324. }
  325. export interface AmazonopensearchserviceDestinationUpdate {
  326. /**
  327. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Amazon OpenSearch Service Configuration API and for indexing documents.
  328. */
  329. RoleARN?: RoleARN;
  330. /**
  331. * The ARN of the Amazon OpenSearch Service domain. The IAM role must have permissions for DescribeDomain, DescribeDomains, and DescribeDomainConfig after assuming the IAM role specified in RoleARN.
  332. */
  333. DomainARN?: AmazonopensearchserviceDomainARN;
  334. /**
  335. * The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint or the DomainARN field.
  336. */
  337. ClusterEndpoint?: AmazonopensearchserviceClusterEndpoint;
  338. /**
  339. * The Amazon OpenSearch Service index name.
  340. */
  341. IndexName?: AmazonopensearchserviceIndexName;
  342. /**
  343. * The Amazon OpenSearch Service type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a new type for an existing index that already has another type, Firehose returns an error during runtime. If you upgrade Elasticsearch from 6.x to 7.x and don’t update your delivery stream, Firehose still delivers data to Elasticsearch with the old index name and type name. If you want to update your delivery stream with a new index name, provide an empty string for TypeName.
  344. */
  345. TypeName?: AmazonopensearchserviceTypeName;
  346. /**
  347. * The Amazon OpenSearch Service index rotation period. Index rotation appends a timestamp to IndexName to facilitate the expiration of old data.
  348. */
  349. IndexRotationPeriod?: AmazonopensearchserviceIndexRotationPeriod;
  350. /**
  351. * The buffering options. If no value is specified, AmazonopensearchBufferingHints object default values are used.
  352. */
  353. BufferingHints?: AmazonopensearchserviceBufferingHints;
  354. /**
  355. * The retry behavior in case Firehose is unable to deliver documents to Amazon OpenSearch Service. The default value is 300 (5 minutes).
  356. */
  357. RetryOptions?: AmazonopensearchserviceRetryOptions;
  358. S3Update?: S3DestinationUpdate;
  359. ProcessingConfiguration?: ProcessingConfiguration;
  360. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  361. /**
  362. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  363. */
  364. DocumentIdOptions?: DocumentIdOptions;
  365. }
  366. export type AmazonopensearchserviceDomainARN = string;
  367. export type AmazonopensearchserviceIndexName = string;
  368. export type AmazonopensearchserviceIndexRotationPeriod = "NoRotation"|"OneHour"|"OneDay"|"OneWeek"|"OneMonth"|string;
  369. export type AmazonopensearchserviceRetryDurationInSeconds = number;
  370. export interface AmazonopensearchserviceRetryOptions {
  371. /**
  372. * After an initial failure to deliver to Amazon OpenSearch Service, the total amount of time during which Firehose retries delivery (including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
  373. */
  374. DurationInSeconds?: AmazonopensearchserviceRetryDurationInSeconds;
  375. }
  376. export type AmazonopensearchserviceS3BackupMode = "FailedDocumentsOnly"|"AllDocuments"|string;
  377. export type AmazonopensearchserviceTypeName = string;
  378. export interface AuthenticationConfiguration {
  379. /**
  380. * The ARN of the role used to access the Amazon MSK cluster.
  381. */
  382. RoleARN: RoleARN;
  383. /**
  384. * The type of connectivity used to access the Amazon MSK cluster.
  385. */
  386. Connectivity: Connectivity;
  387. }
  388. export type BlockSizeBytes = number;
  389. export type BooleanObject = boolean;
  390. export type BucketARN = string;
  391. export interface BufferingHints {
  392. /**
  393. * Buffer incoming data to the specified size, in MiBs, before delivering it to the destination. The default value is 5. This parameter is optional but if you specify a value for it, you must also specify a value for IntervalInSeconds, and vice versa. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MiB/sec, the value should be 10 MiB or higher.
  394. */
  395. SizeInMBs?: SizeInMBs;
  396. /**
  397. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. This parameter is optional but if you specify a value for it, you must also specify a value for SizeInMBs, and vice versa.
  398. */
  399. IntervalInSeconds?: IntervalInSeconds;
  400. }
  401. export interface CloudWatchLoggingOptions {
  402. /**
  403. * Enables or disables CloudWatch logging.
  404. */
  405. Enabled?: BooleanObject;
  406. /**
  407. * The CloudWatch group name for logging. This value is required if CloudWatch logging is enabled.
  408. */
  409. LogGroupName?: LogGroupName;
  410. /**
  411. * The CloudWatch log stream name for logging. This value is required if CloudWatch logging is enabled.
  412. */
  413. LogStreamName?: LogStreamName;
  414. }
  415. export type ClusterJDBCURL = string;
  416. export type ColumnToJsonKeyMappings = {[key: string]: NonEmptyString};
  417. export type CompressionFormat = "UNCOMPRESSED"|"GZIP"|"ZIP"|"Snappy"|"HADOOP_SNAPPY"|string;
  418. export type Connectivity = "PUBLIC"|"PRIVATE"|string;
  419. export type ContentEncoding = "NONE"|"GZIP"|string;
  420. export interface CopyCommand {
  421. /**
  422. * The name of the target table. The table must already exist in the database.
  423. */
  424. DataTableName: DataTableName;
  425. /**
  426. * A comma-separated list of column names.
  427. */
  428. DataTableColumns?: DataTableColumns;
  429. /**
  430. * Optional parameters to use with the Amazon Redshift COPY command. For more information, see the "Optional Parameters" section of Amazon Redshift COPY command. Some possible examples that would apply to Firehose are as follows: delimiter '\t' lzop; - fields are delimited with "\t" (TAB character) and compressed using lzop. delimiter '|' - fields are delimited with "|" (this is the default delimiter). delimiter '|' escape - the delimiter should be escaped. fixedwidth 'venueid:3,venuename:25,venuecity:12,venuestate:2,venueseats:6' - fields are fixed width in the source, with each width specified after every column in the table. JSON 's3://mybucket/jsonpaths.txt' - data is in JSON format, and the path specified is the format of the data. For more examples, see Amazon Redshift COPY command examples.
  431. */
  432. CopyOptions?: CopyOptions;
  433. }
  434. export type CopyOptions = string;
  435. export interface CreateDeliveryStreamInput {
  436. /**
  437. * The name of the delivery stream. This name must be unique per Amazon Web Services account in the same Amazon Web Services Region. If the delivery streams are in different accounts or different Regions, you can have multiple delivery streams with the same name.
  438. */
  439. DeliveryStreamName: DeliveryStreamName;
  440. /**
  441. * The delivery stream type. This parameter can be one of the following values: DirectPut: Provider applications access the delivery stream directly. KinesisStreamAsSource: The delivery stream uses a Kinesis data stream as a source.
  442. */
  443. DeliveryStreamType?: DeliveryStreamType;
  444. /**
  445. * When a Kinesis data stream is used as the source for the delivery stream, a KinesisStreamSourceConfiguration containing the Kinesis data stream Amazon Resource Name (ARN) and the role ARN for the source stream.
  446. */
  447. KinesisStreamSourceConfiguration?: KinesisStreamSourceConfiguration;
  448. /**
  449. * Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).
  450. */
  451. DeliveryStreamEncryptionConfigurationInput?: DeliveryStreamEncryptionConfigurationInput;
  452. /**
  453. * [Deprecated] The destination in Amazon S3. You can specify only one destination.
  454. */
  455. S3DestinationConfiguration?: S3DestinationConfiguration;
  456. /**
  457. * The destination in Amazon S3. You can specify only one destination.
  458. */
  459. ExtendedS3DestinationConfiguration?: ExtendedS3DestinationConfiguration;
  460. /**
  461. * The destination in Amazon Redshift. You can specify only one destination.
  462. */
  463. RedshiftDestinationConfiguration?: RedshiftDestinationConfiguration;
  464. /**
  465. * The destination in Amazon ES. You can specify only one destination.
  466. */
  467. ElasticsearchDestinationConfiguration?: ElasticsearchDestinationConfiguration;
  468. /**
  469. * The destination in Amazon OpenSearch Service. You can specify only one destination.
  470. */
  471. AmazonopensearchserviceDestinationConfiguration?: AmazonopensearchserviceDestinationConfiguration;
  472. /**
  473. * The destination in Splunk. You can specify only one destination.
  474. */
  475. SplunkDestinationConfiguration?: SplunkDestinationConfiguration;
  476. /**
  477. * Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination. You can specify only one destination.
  478. */
  479. HttpEndpointDestinationConfiguration?: HttpEndpointDestinationConfiguration;
  480. /**
  481. * A set of tags to assign to the delivery stream. A tag is a key-value pair that you can define and assign to Amazon Web Services resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide. You can specify up to 50 tags when creating a delivery stream. If you specify tags in the CreateDeliveryStream action, Amazon Data Firehose performs an additional authorization on the firehose:TagDeliveryStream action to verify if users have permissions to create tags. If you do not provide this permission, requests to create new Firehose delivery streams with IAM resource tags will fail with an AccessDeniedException such as following. AccessDeniedException User: arn:aws:sts::x:assumed-role/x/x is not authorized to perform: firehose:TagDeliveryStream on resource: arn:aws:firehose:us-east-1:x:deliverystream/x with an explicit deny in an identity-based policy. For an example IAM policy, see Tag example.
  482. */
  483. Tags?: TagDeliveryStreamInputTagList;
  484. /**
  485. * The destination in the Serverless offering for Amazon OpenSearch Service. You can specify only one destination.
  486. */
  487. AmazonOpenSearchServerlessDestinationConfiguration?: AmazonOpenSearchServerlessDestinationConfiguration;
  488. MSKSourceConfiguration?: MSKSourceConfiguration;
  489. /**
  490. * Configure Snowflake destination
  491. */
  492. SnowflakeDestinationConfiguration?: SnowflakeDestinationConfiguration;
  493. }
  494. export interface CreateDeliveryStreamOutput {
  495. /**
  496. * The ARN of the delivery stream.
  497. */
  498. DeliveryStreamARN?: DeliveryStreamARN;
  499. }
  500. export type CustomTimeZone = string;
  501. export type Data = Buffer|Uint8Array|Blob|string;
  502. export interface DataFormatConversionConfiguration {
  503. /**
  504. * Specifies the Amazon Web Services Glue Data Catalog table that contains the column information. This parameter is required if Enabled is set to true.
  505. */
  506. SchemaConfiguration?: SchemaConfiguration;
  507. /**
  508. * Specifies the deserializer that you want Firehose to use to convert the format of your data from JSON. This parameter is required if Enabled is set to true.
  509. */
  510. InputFormatConfiguration?: InputFormatConfiguration;
  511. /**
  512. * Specifies the serializer that you want Firehose to use to convert the format of your data to the Parquet or ORC format. This parameter is required if Enabled is set to true.
  513. */
  514. OutputFormatConfiguration?: OutputFormatConfiguration;
  515. /**
  516. * Defaults to true. Set it to false if you want to disable format conversion while preserving the configuration details.
  517. */
  518. Enabled?: BooleanObject;
  519. }
  520. export type DataTableColumns = string;
  521. export type DataTableName = string;
  522. export type DefaultDocumentIdFormat = "FIREHOSE_DEFAULT"|"NO_DOCUMENT_ID"|string;
  523. export interface DeleteDeliveryStreamInput {
  524. /**
  525. * The name of the delivery stream.
  526. */
  527. DeliveryStreamName: DeliveryStreamName;
  528. /**
  529. * Set this to true if you want to delete the delivery stream even if Firehose is unable to retire the grant for the CMK. Firehose might be unable to retire the grant due to a customer error, such as when the CMK or the grant are in an invalid state. If you force deletion, you can then use the RevokeGrant operation to revoke the grant you gave to Firehose. If a failure to retire the grant happens due to an Amazon Web Services KMS issue, Firehose keeps retrying the delete operation. The default value is false.
  530. */
  531. AllowForceDelete?: BooleanObject;
  532. }
  533. export interface DeleteDeliveryStreamOutput {
  534. }
  535. export type DeliveryStartTimestamp = Date;
  536. export type DeliveryStreamARN = string;
  537. export interface DeliveryStreamDescription {
  538. /**
  539. * The name of the delivery stream.
  540. */
  541. DeliveryStreamName: DeliveryStreamName;
  542. /**
  543. * The Amazon Resource Name (ARN) of the delivery stream. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  544. */
  545. DeliveryStreamARN: DeliveryStreamARN;
  546. /**
  547. * The status of the delivery stream. If the status of a delivery stream is CREATING_FAILED, this status doesn't change, and you can't invoke CreateDeliveryStream again on it. However, you can invoke the DeleteDeliveryStream operation to delete it.
  548. */
  549. DeliveryStreamStatus: DeliveryStreamStatus;
  550. /**
  551. * Provides details in case one of the following operations fails due to an error related to KMS: CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, StopDeliveryStreamEncryption.
  552. */
  553. FailureDescription?: FailureDescription;
  554. /**
  555. * Indicates the server-side encryption (SSE) status for the delivery stream.
  556. */
  557. DeliveryStreamEncryptionConfiguration?: DeliveryStreamEncryptionConfiguration;
  558. /**
  559. * The delivery stream type. This can be one of the following values: DirectPut: Provider applications access the delivery stream directly. KinesisStreamAsSource: The delivery stream uses a Kinesis data stream as a source.
  560. */
  561. DeliveryStreamType: DeliveryStreamType;
  562. /**
  563. * Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID is required when updating the destination. This is so that the service knows it is applying the changes to the correct version of the delivery stream.
  564. */
  565. VersionId: DeliveryStreamVersionId;
  566. /**
  567. * The date and time that the delivery stream was created.
  568. */
  569. CreateTimestamp?: Timestamp;
  570. /**
  571. * The date and time that the delivery stream was last updated.
  572. */
  573. LastUpdateTimestamp?: Timestamp;
  574. /**
  575. * If the DeliveryStreamType parameter is KinesisStreamAsSource, a SourceDescription object describing the source Kinesis data stream.
  576. */
  577. Source?: SourceDescription;
  578. /**
  579. * The destinations.
  580. */
  581. Destinations: DestinationDescriptionList;
  582. /**
  583. * Indicates whether there are more destinations available to list.
  584. */
  585. HasMoreDestinations: BooleanObject;
  586. }
  587. export interface DeliveryStreamEncryptionConfiguration {
  588. /**
  589. * If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer managed CMK. If KeyType is Amazon Web Services_OWNED_CMK, DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN.
  590. */
  591. KeyARN?: AWSKMSKeyARN;
  592. /**
  593. * Indicates the type of customer master key (CMK) that is used for encryption. The default setting is Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys (CMKs).
  594. */
  595. KeyType?: KeyType;
  596. /**
  597. * This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent attempt to enable or disable SSE, respectively.
  598. */
  599. Status?: DeliveryStreamEncryptionStatus;
  600. /**
  601. * Provides details in case one of the following operations fails due to an error related to KMS: CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, StopDeliveryStreamEncryption.
  602. */
  603. FailureDescription?: FailureDescription;
  604. }
  605. export interface DeliveryStreamEncryptionConfigurationInput {
  606. /**
  607. * If you set KeyType to CUSTOMER_MANAGED_CMK, you must specify the Amazon Resource Name (ARN) of the CMK. If you set KeyType to Amazon Web Services_OWNED_CMK, Firehose uses a service-account CMK.
  608. */
  609. KeyARN?: AWSKMSKeyARN;
  610. /**
  611. * Indicates the type of customer master key (CMK) to use for encryption. The default setting is Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys (CMKs). When you invoke CreateDeliveryStream or StartDeliveryStreamEncryption with KeyType set to CUSTOMER_MANAGED_CMK, Firehose invokes the Amazon KMS operation CreateGrant to create a grant that allows the Firehose service to use the customer managed CMK to perform encryption and decryption. Firehose manages that grant. When you invoke StartDeliveryStreamEncryption to change the CMK for a delivery stream that is encrypted with a customer managed CMK, Firehose schedules the grant it had on the old CMK for retirement. You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams. If a CreateDeliveryStream or StartDeliveryStreamEncryption operation exceeds this limit, Firehose throws a LimitExceededException. To encrypt your delivery stream, use symmetric CMKs. Firehose doesn't support asymmetric CMKs. For information about symmetric and asymmetric CMKs, see About Symmetric and Asymmetric CMKs in the Amazon Web Services Key Management Service developer guide.
  612. */
  613. KeyType: KeyType;
  614. }
  615. export type DeliveryStreamEncryptionStatus = "ENABLED"|"ENABLING"|"ENABLING_FAILED"|"DISABLED"|"DISABLING"|"DISABLING_FAILED"|string;
  616. export type DeliveryStreamFailureType = "RETIRE_KMS_GRANT_FAILED"|"CREATE_KMS_GRANT_FAILED"|"KMS_ACCESS_DENIED"|"DISABLED_KMS_KEY"|"INVALID_KMS_KEY"|"KMS_KEY_NOT_FOUND"|"KMS_OPT_IN_REQUIRED"|"CREATE_ENI_FAILED"|"DELETE_ENI_FAILED"|"SUBNET_NOT_FOUND"|"SECURITY_GROUP_NOT_FOUND"|"ENI_ACCESS_DENIED"|"SUBNET_ACCESS_DENIED"|"SECURITY_GROUP_ACCESS_DENIED"|"UNKNOWN_ERROR"|string;
  617. export type DeliveryStreamName = string;
  618. export type DeliveryStreamNameList = DeliveryStreamName[];
  619. export type DeliveryStreamStatus = "CREATING"|"CREATING_FAILED"|"DELETING"|"DELETING_FAILED"|"ACTIVE"|string;
  620. export type DeliveryStreamType = "DirectPut"|"KinesisStreamAsSource"|"MSKAsSource"|string;
  621. export type DeliveryStreamVersionId = string;
  622. export interface DescribeDeliveryStreamInput {
  623. /**
  624. * The name of the delivery stream.
  625. */
  626. DeliveryStreamName: DeliveryStreamName;
  627. /**
  628. * The limit on the number of destinations to return. You can have one destination per delivery stream.
  629. */
  630. Limit?: DescribeDeliveryStreamInputLimit;
  631. /**
  632. * The ID of the destination to start returning the destination information. Firehose supports one destination per delivery stream.
  633. */
  634. ExclusiveStartDestinationId?: DestinationId;
  635. }
  636. export type DescribeDeliveryStreamInputLimit = number;
  637. export interface DescribeDeliveryStreamOutput {
  638. /**
  639. * Information about the delivery stream.
  640. */
  641. DeliveryStreamDescription: DeliveryStreamDescription;
  642. }
  643. export interface Deserializer {
  644. /**
  645. * The OpenX SerDe. Used by Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe.
  646. */
  647. OpenXJsonSerDe?: OpenXJsonSerDe;
  648. /**
  649. * The native Hive / HCatalog JsonSerDe. Used by Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe.
  650. */
  651. HiveJsonSerDe?: HiveJsonSerDe;
  652. }
  653. export interface DestinationDescription {
  654. /**
  655. * The ID of the destination.
  656. */
  657. DestinationId: DestinationId;
  658. /**
  659. * [Deprecated] The destination in Amazon S3.
  660. */
  661. S3DestinationDescription?: S3DestinationDescription;
  662. /**
  663. * The destination in Amazon S3.
  664. */
  665. ExtendedS3DestinationDescription?: ExtendedS3DestinationDescription;
  666. /**
  667. * The destination in Amazon Redshift.
  668. */
  669. RedshiftDestinationDescription?: RedshiftDestinationDescription;
  670. /**
  671. * The destination in Amazon ES.
  672. */
  673. ElasticsearchDestinationDescription?: ElasticsearchDestinationDescription;
  674. /**
  675. * The destination in Amazon OpenSearch Service.
  676. */
  677. AmazonopensearchserviceDestinationDescription?: AmazonopensearchserviceDestinationDescription;
  678. /**
  679. * The destination in Splunk.
  680. */
  681. SplunkDestinationDescription?: SplunkDestinationDescription;
  682. /**
  683. * Describes the specified HTTP endpoint destination.
  684. */
  685. HttpEndpointDestinationDescription?: HttpEndpointDestinationDescription;
  686. /**
  687. * Optional description for the destination
  688. */
  689. SnowflakeDestinationDescription?: SnowflakeDestinationDescription;
  690. /**
  691. * The destination in the Serverless offering for Amazon OpenSearch Service.
  692. */
  693. AmazonOpenSearchServerlessDestinationDescription?: AmazonOpenSearchServerlessDestinationDescription;
  694. }
  695. export type DestinationDescriptionList = DestinationDescription[];
  696. export type DestinationId = string;
  697. export interface DocumentIdOptions {
  698. /**
  699. * When the FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record based on a unique internal identifier. The generated document ID is stable across multiple delivery attempts, which helps prevent the same record from being indexed multiple times with different document IDs. When the NO_DOCUMENT_ID option is chosen, Firehose does not include any document IDs in the requests it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to generate document IDs. In case of multiple delivery attempts, this may cause the same record to be indexed more than once with different document IDs. This option enables write-heavy operations, such as the ingestion of logs and observability data, to consume less resources in the Amazon OpenSearch Service domain, resulting in improved performance.
  700. */
  701. DefaultDocumentIdFormat: DefaultDocumentIdFormat;
  702. }
  703. export interface DynamicPartitioningConfiguration {
  704. /**
  705. * The retry behavior in case Firehose is unable to deliver data to an Amazon S3 prefix.
  706. */
  707. RetryOptions?: RetryOptions;
  708. /**
  709. * Specifies that the dynamic partitioning is enabled for this Firehose delivery stream.
  710. */
  711. Enabled?: BooleanObject;
  712. }
  713. export interface ElasticsearchBufferingHints {
  714. /**
  715. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300 (5 minutes).
  716. */
  717. IntervalInSeconds?: ElasticsearchBufferingIntervalInSeconds;
  718. /**
  719. * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
  720. */
  721. SizeInMBs?: ElasticsearchBufferingSizeInMBs;
  722. }
  723. export type ElasticsearchBufferingIntervalInSeconds = number;
  724. export type ElasticsearchBufferingSizeInMBs = number;
  725. export type ElasticsearchClusterEndpoint = string;
  726. export interface ElasticsearchDestinationConfiguration {
  727. /**
  728. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Grant Firehose Access to an Amazon S3 Destination and Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  729. */
  730. RoleARN: RoleARN;
  731. /**
  732. * The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeDomain, DescribeDomains, and DescribeDomainConfig after assuming the role specified in RoleARN. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. Specify either ClusterEndpoint or DomainARN.
  733. */
  734. DomainARN?: ElasticsearchDomainARN;
  735. /**
  736. * The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint or the DomainARN field.
  737. */
  738. ClusterEndpoint?: ElasticsearchClusterEndpoint;
  739. /**
  740. * The Elasticsearch index name.
  741. */
  742. IndexName: ElasticsearchIndexName;
  743. /**
  744. * The Elasticsearch type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a new type for an existing index that already has another type, Firehose returns an error during run time. For Elasticsearch 7.x, don't specify a TypeName.
  745. */
  746. TypeName?: ElasticsearchTypeName;
  747. /**
  748. * The Elasticsearch index rotation period. Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data. For more information, see Index Rotation for the Amazon ES Destination. The default value is OneDay.
  749. */
  750. IndexRotationPeriod?: ElasticsearchIndexRotationPeriod;
  751. /**
  752. * The buffering options. If no value is specified, the default values for ElasticsearchBufferingHints are used.
  753. */
  754. BufferingHints?: ElasticsearchBufferingHints;
  755. /**
  756. * The retry behavior in case Firehose is unable to deliver documents to Amazon ES. The default value is 300 (5 minutes).
  757. */
  758. RetryOptions?: ElasticsearchRetryOptions;
  759. /**
  760. * Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to the prefix. For more information, see Amazon S3 Backup for the Amazon ES Destination. Default value is FailedDocumentsOnly. You can't change this backup mode after you create the delivery stream.
  761. */
  762. S3BackupMode?: ElasticsearchS3BackupMode;
  763. /**
  764. * The configuration for the backup Amazon S3 location.
  765. */
  766. S3Configuration: S3DestinationConfiguration;
  767. /**
  768. * The data processing configuration.
  769. */
  770. ProcessingConfiguration?: ProcessingConfiguration;
  771. /**
  772. * The Amazon CloudWatch logging options for your delivery stream.
  773. */
  774. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  775. /**
  776. * The details of the VPC of the Amazon destination.
  777. */
  778. VpcConfiguration?: VpcConfiguration;
  779. /**
  780. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  781. */
  782. DocumentIdOptions?: DocumentIdOptions;
  783. }
  784. export interface ElasticsearchDestinationDescription {
  785. /**
  786. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  787. */
  788. RoleARN?: RoleARN;
  789. /**
  790. * The ARN of the Amazon ES domain. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. Firehose uses either ClusterEndpoint or DomainARN to send data to Amazon ES.
  791. */
  792. DomainARN?: ElasticsearchDomainARN;
  793. /**
  794. * The endpoint to use when communicating with the cluster. Firehose uses either this ClusterEndpoint or the DomainARN field to send data to Amazon ES.
  795. */
  796. ClusterEndpoint?: ElasticsearchClusterEndpoint;
  797. /**
  798. * The Elasticsearch index name.
  799. */
  800. IndexName?: ElasticsearchIndexName;
  801. /**
  802. * The Elasticsearch type name. This applies to Elasticsearch 6.x and lower versions. For Elasticsearch 7.x and OpenSearch Service 1.x, there's no value for TypeName.
  803. */
  804. TypeName?: ElasticsearchTypeName;
  805. /**
  806. * The Elasticsearch index rotation period
  807. */
  808. IndexRotationPeriod?: ElasticsearchIndexRotationPeriod;
  809. /**
  810. * The buffering options.
  811. */
  812. BufferingHints?: ElasticsearchBufferingHints;
  813. /**
  814. * The Amazon ES retry options.
  815. */
  816. RetryOptions?: ElasticsearchRetryOptions;
  817. /**
  818. * The Amazon S3 backup mode.
  819. */
  820. S3BackupMode?: ElasticsearchS3BackupMode;
  821. /**
  822. * The Amazon S3 destination.
  823. */
  824. S3DestinationDescription?: S3DestinationDescription;
  825. /**
  826. * The data processing configuration.
  827. */
  828. ProcessingConfiguration?: ProcessingConfiguration;
  829. /**
  830. * The Amazon CloudWatch logging options.
  831. */
  832. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  833. /**
  834. * The details of the VPC of the Amazon OpenSearch or the Amazon OpenSearch Serverless destination.
  835. */
  836. VpcConfigurationDescription?: VpcConfigurationDescription;
  837. /**
  838. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  839. */
  840. DocumentIdOptions?: DocumentIdOptions;
  841. }
  842. export interface ElasticsearchDestinationUpdate {
  843. /**
  844. * The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Amazon ES Configuration API and for indexing documents. For more information, see Grant Firehose Access to an Amazon S3 Destination and Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  845. */
  846. RoleARN?: RoleARN;
  847. /**
  848. * The ARN of the Amazon ES domain. The IAM role must have permissions for DescribeDomain, DescribeDomains, and DescribeDomainConfig after assuming the IAM role specified in RoleARN. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces. Specify either ClusterEndpoint or DomainARN.
  849. */
  850. DomainARN?: ElasticsearchDomainARN;
  851. /**
  852. * The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint or the DomainARN field.
  853. */
  854. ClusterEndpoint?: ElasticsearchClusterEndpoint;
  855. /**
  856. * The Elasticsearch index name.
  857. */
  858. IndexName?: ElasticsearchIndexName;
  859. /**
  860. * The Elasticsearch type name. For Elasticsearch 6.x, there can be only one type per index. If you try to specify a new type for an existing index that already has another type, Firehose returns an error during runtime. If you upgrade Elasticsearch from 6.x to 7.x and don’t update your delivery stream, Firehose still delivers data to Elasticsearch with the old index name and type name. If you want to update your delivery stream with a new index name, provide an empty string for TypeName.
  861. */
  862. TypeName?: ElasticsearchTypeName;
  863. /**
  864. * The Elasticsearch index rotation period. Index rotation appends a timestamp to IndexName to facilitate the expiration of old data. For more information, see Index Rotation for the Amazon ES Destination. Default value is OneDay.
  865. */
  866. IndexRotationPeriod?: ElasticsearchIndexRotationPeriod;
  867. /**
  868. * The buffering options. If no value is specified, ElasticsearchBufferingHints object default values are used.
  869. */
  870. BufferingHints?: ElasticsearchBufferingHints;
  871. /**
  872. * The retry behavior in case Firehose is unable to deliver documents to Amazon ES. The default value is 300 (5 minutes).
  873. */
  874. RetryOptions?: ElasticsearchRetryOptions;
  875. /**
  876. * The Amazon S3 destination.
  877. */
  878. S3Update?: S3DestinationUpdate;
  879. /**
  880. * The data processing configuration.
  881. */
  882. ProcessingConfiguration?: ProcessingConfiguration;
  883. /**
  884. * The CloudWatch logging options for your delivery stream.
  885. */
  886. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  887. /**
  888. * Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
  889. */
  890. DocumentIdOptions?: DocumentIdOptions;
  891. }
  892. export type ElasticsearchDomainARN = string;
  893. export type ElasticsearchIndexName = string;
  894. export type ElasticsearchIndexRotationPeriod = "NoRotation"|"OneHour"|"OneDay"|"OneWeek"|"OneMonth"|string;
  895. export type ElasticsearchRetryDurationInSeconds = number;
  896. export interface ElasticsearchRetryOptions {
  897. /**
  898. * After an initial failure to deliver to Amazon ES, the total amount of time during which Firehose retries delivery (including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
  899. */
  900. DurationInSeconds?: ElasticsearchRetryDurationInSeconds;
  901. }
  902. export type ElasticsearchS3BackupMode = "FailedDocumentsOnly"|"AllDocuments"|string;
  903. export type ElasticsearchTypeName = string;
  904. export interface EncryptionConfiguration {
  905. /**
  906. * Specifically override existing encryption information to ensure that no encryption is used.
  907. */
  908. NoEncryptionConfig?: NoEncryptionConfig;
  909. /**
  910. * The encryption key.
  911. */
  912. KMSEncryptionConfig?: KMSEncryptionConfig;
  913. }
  914. export type ErrorCode = string;
  915. export type ErrorMessage = string;
  916. export type ErrorOutputPrefix = string;
  917. export interface ExtendedS3DestinationConfiguration {
  918. /**
  919. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  920. */
  921. RoleARN: RoleARN;
  922. /**
  923. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  924. */
  925. BucketARN: BucketARN;
  926. /**
  927. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  928. */
  929. Prefix?: Prefix;
  930. /**
  931. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  932. */
  933. ErrorOutputPrefix?: ErrorOutputPrefix;
  934. /**
  935. * The buffering option.
  936. */
  937. BufferingHints?: BufferingHints;
  938. /**
  939. * The compression format. If no value is specified, the default is UNCOMPRESSED.
  940. */
  941. CompressionFormat?: CompressionFormat;
  942. /**
  943. * The encryption configuration. If no value is specified, the default is no encryption.
  944. */
  945. EncryptionConfiguration?: EncryptionConfiguration;
  946. /**
  947. * The Amazon CloudWatch logging options for your delivery stream.
  948. */
  949. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  950. /**
  951. * The data processing configuration.
  952. */
  953. ProcessingConfiguration?: ProcessingConfiguration;
  954. /**
  955. * The Amazon S3 backup mode. After you create a delivery stream, you can update it to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
  956. */
  957. S3BackupMode?: S3BackupMode;
  958. /**
  959. * The configuration for backup in Amazon S3.
  960. */
  961. S3BackupConfiguration?: S3DestinationConfiguration;
  962. /**
  963. * The serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3.
  964. */
  965. DataFormatConversionConfiguration?: DataFormatConversionConfiguration;
  966. /**
  967. * The configuration of the dynamic partitioning mechanism that creates smaller data sets from the streaming data by partitioning it based on partition keys. Currently, dynamic partitioning is only supported for Amazon S3 destinations.
  968. */
  969. DynamicPartitioningConfiguration?: DynamicPartitioningConfiguration;
  970. /**
  971. * Specify a file extension. It will override the default file extension
  972. */
  973. FileExtension?: FileExtension;
  974. /**
  975. * The time zone you prefer. UTC is the default.
  976. */
  977. CustomTimeZone?: CustomTimeZone;
  978. }
  979. export interface ExtendedS3DestinationDescription {
  980. /**
  981. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  982. */
  983. RoleARN: RoleARN;
  984. /**
  985. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  986. */
  987. BucketARN: BucketARN;
  988. /**
  989. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  990. */
  991. Prefix?: Prefix;
  992. /**
  993. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  994. */
  995. ErrorOutputPrefix?: ErrorOutputPrefix;
  996. /**
  997. * The buffering option.
  998. */
  999. BufferingHints: BufferingHints;
  1000. /**
  1001. * The compression format. If no value is specified, the default is UNCOMPRESSED.
  1002. */
  1003. CompressionFormat: CompressionFormat;
  1004. /**
  1005. * The encryption configuration. If no value is specified, the default is no encryption.
  1006. */
  1007. EncryptionConfiguration: EncryptionConfiguration;
  1008. /**
  1009. * The Amazon CloudWatch logging options for your delivery stream.
  1010. */
  1011. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1012. /**
  1013. * The data processing configuration.
  1014. */
  1015. ProcessingConfiguration?: ProcessingConfiguration;
  1016. /**
  1017. * The Amazon S3 backup mode.
  1018. */
  1019. S3BackupMode?: S3BackupMode;
  1020. /**
  1021. * The configuration for backup in Amazon S3.
  1022. */
  1023. S3BackupDescription?: S3DestinationDescription;
  1024. /**
  1025. * The serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3.
  1026. */
  1027. DataFormatConversionConfiguration?: DataFormatConversionConfiguration;
  1028. /**
  1029. * The configuration of the dynamic partitioning mechanism that creates smaller data sets from the streaming data by partitioning it based on partition keys. Currently, dynamic partitioning is only supported for Amazon S3 destinations.
  1030. */
  1031. DynamicPartitioningConfiguration?: DynamicPartitioningConfiguration;
  1032. /**
  1033. * Specify a file extension. It will override the default file extension
  1034. */
  1035. FileExtension?: FileExtension;
  1036. /**
  1037. * The time zone you prefer. UTC is the default.
  1038. */
  1039. CustomTimeZone?: CustomTimeZone;
  1040. }
  1041. export interface ExtendedS3DestinationUpdate {
  1042. /**
  1043. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1044. */
  1045. RoleARN?: RoleARN;
  1046. /**
  1047. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1048. */
  1049. BucketARN?: BucketARN;
  1050. /**
  1051. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  1052. */
  1053. Prefix?: Prefix;
  1054. /**
  1055. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  1056. */
  1057. ErrorOutputPrefix?: ErrorOutputPrefix;
  1058. /**
  1059. * The buffering option.
  1060. */
  1061. BufferingHints?: BufferingHints;
  1062. /**
  1063. * The compression format. If no value is specified, the default is UNCOMPRESSED.
  1064. */
  1065. CompressionFormat?: CompressionFormat;
  1066. /**
  1067. * The encryption configuration. If no value is specified, the default is no encryption.
  1068. */
  1069. EncryptionConfiguration?: EncryptionConfiguration;
  1070. /**
  1071. * The Amazon CloudWatch logging options for your delivery stream.
  1072. */
  1073. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1074. /**
  1075. * The data processing configuration.
  1076. */
  1077. ProcessingConfiguration?: ProcessingConfiguration;
  1078. /**
  1079. * You can update a delivery stream to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
  1080. */
  1081. S3BackupMode?: S3BackupMode;
  1082. /**
  1083. * The Amazon S3 destination for backup.
  1084. */
  1085. S3BackupUpdate?: S3DestinationUpdate;
  1086. /**
  1087. * The serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3.
  1088. */
  1089. DataFormatConversionConfiguration?: DataFormatConversionConfiguration;
  1090. /**
  1091. * The configuration of the dynamic partitioning mechanism that creates smaller data sets from the streaming data by partitioning it based on partition keys. Currently, dynamic partitioning is only supported for Amazon S3 destinations.
  1092. */
  1093. DynamicPartitioningConfiguration?: DynamicPartitioningConfiguration;
  1094. /**
  1095. * Specify a file extension. It will override the default file extension
  1096. */
  1097. FileExtension?: FileExtension;
  1098. /**
  1099. * The time zone you prefer. UTC is the default.
  1100. */
  1101. CustomTimeZone?: CustomTimeZone;
  1102. }
  1103. export interface FailureDescription {
  1104. /**
  1105. * The type of error that caused the failure.
  1106. */
  1107. Type: DeliveryStreamFailureType;
  1108. /**
  1109. * A message providing details about the error that caused the failure.
  1110. */
  1111. Details: NonEmptyString;
  1112. }
  1113. export type FileExtension = string;
  1114. export type HECAcknowledgmentTimeoutInSeconds = number;
  1115. export type HECEndpoint = string;
  1116. export type HECEndpointType = "Raw"|"Event"|string;
  1117. export type HECToken = string;
  1118. export interface HiveJsonSerDe {
  1119. /**
  1120. * Indicates how you want Firehose to parse the date and timestamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see Class DateTimeFormat. You can also use the special value millis to parse timestamps in epoch milliseconds. If you don't specify a format, Firehose uses java.sql.Timestamp::valueOf by default.
  1121. */
  1122. TimestampFormats?: ListOfNonEmptyStrings;
  1123. }
  1124. export type HttpEndpointAccessKey = string;
  1125. export type HttpEndpointAttributeName = string;
  1126. export type HttpEndpointAttributeValue = string;
  1127. export interface HttpEndpointBufferingHints {
  1128. /**
  1129. * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
  1130. */
  1131. SizeInMBs?: HttpEndpointBufferingSizeInMBs;
  1132. /**
  1133. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300 (5 minutes).
  1134. */
  1135. IntervalInSeconds?: HttpEndpointBufferingIntervalInSeconds;
  1136. }
  1137. export type HttpEndpointBufferingIntervalInSeconds = number;
  1138. export type HttpEndpointBufferingSizeInMBs = number;
  1139. export interface HttpEndpointCommonAttribute {
  1140. /**
  1141. * The name of the HTTP endpoint common attribute.
  1142. */
  1143. AttributeName: HttpEndpointAttributeName;
  1144. /**
  1145. * The value of the HTTP endpoint common attribute.
  1146. */
  1147. AttributeValue: HttpEndpointAttributeValue;
  1148. }
  1149. export type HttpEndpointCommonAttributesList = HttpEndpointCommonAttribute[];
  1150. export interface HttpEndpointConfiguration {
  1151. /**
  1152. * The URL of the HTTP endpoint selected as the destination. If you choose an HTTP endpoint as your destination, review and follow the instructions in the Appendix - HTTP Endpoint Delivery Request and Response Specifications.
  1153. */
  1154. Url: HttpEndpointUrl;
  1155. /**
  1156. * The name of the HTTP endpoint selected as the destination.
  1157. */
  1158. Name?: HttpEndpointName;
  1159. /**
  1160. * The access key required for Kinesis Firehose to authenticate with the HTTP endpoint selected as the destination.
  1161. */
  1162. AccessKey?: HttpEndpointAccessKey;
  1163. }
  1164. export interface HttpEndpointDescription {
  1165. /**
  1166. * The URL of the HTTP endpoint selected as the destination.
  1167. */
  1168. Url?: HttpEndpointUrl;
  1169. /**
  1170. * The name of the HTTP endpoint selected as the destination.
  1171. */
  1172. Name?: HttpEndpointName;
  1173. }
  1174. export interface HttpEndpointDestinationConfiguration {
  1175. /**
  1176. * The configuration of the HTTP endpoint selected as the destination.
  1177. */
  1178. EndpointConfiguration: HttpEndpointConfiguration;
  1179. /**
  1180. * The buffering options that can be used before data is delivered to the specified destination. Firehose treats these options as hints, and it might choose to use more optimal values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if you specify a value for one of them, you must also provide a value for the other.
  1181. */
  1182. BufferingHints?: HttpEndpointBufferingHints;
  1183. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1184. /**
  1185. * The configuration of the requeste sent to the HTTP endpoint specified as the destination.
  1186. */
  1187. RequestConfiguration?: HttpEndpointRequestConfiguration;
  1188. ProcessingConfiguration?: ProcessingConfiguration;
  1189. /**
  1190. * Firehose uses this IAM role for all the permissions that the delivery stream needs.
  1191. */
  1192. RoleARN?: RoleARN;
  1193. /**
  1194. * Describes the retry behavior in case Firehose is unable to deliver data to the specified HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint destination.
  1195. */
  1196. RetryOptions?: HttpEndpointRetryOptions;
  1197. /**
  1198. * Describes the S3 bucket backup options for the data that Firehose delivers to the HTTP endpoint destination. You can back up all documents (AllData) or only the documents that Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly).
  1199. */
  1200. S3BackupMode?: HttpEndpointS3BackupMode;
  1201. S3Configuration: S3DestinationConfiguration;
  1202. }
  1203. export interface HttpEndpointDestinationDescription {
  1204. /**
  1205. * The configuration of the specified HTTP endpoint destination.
  1206. */
  1207. EndpointConfiguration?: HttpEndpointDescription;
  1208. /**
  1209. * Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint destination. Firehose teats these options as hints, and it might choose to use more optimal values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a value for one of them, you must also provide a value for the other.
  1210. */
  1211. BufferingHints?: HttpEndpointBufferingHints;
  1212. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1213. /**
  1214. * The configuration of request sent to the HTTP endpoint specified as the destination.
  1215. */
  1216. RequestConfiguration?: HttpEndpointRequestConfiguration;
  1217. ProcessingConfiguration?: ProcessingConfiguration;
  1218. /**
  1219. * Firehose uses this IAM role for all the permissions that the delivery stream needs.
  1220. */
  1221. RoleARN?: RoleARN;
  1222. /**
  1223. * Describes the retry behavior in case Firehose is unable to deliver data to the specified HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint destination.
  1224. */
  1225. RetryOptions?: HttpEndpointRetryOptions;
  1226. /**
  1227. * Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint destination. You can back up all documents (AllData) or only the documents that Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly).
  1228. */
  1229. S3BackupMode?: HttpEndpointS3BackupMode;
  1230. S3DestinationDescription?: S3DestinationDescription;
  1231. }
  1232. export interface HttpEndpointDestinationUpdate {
  1233. /**
  1234. * Describes the configuration of the HTTP endpoint destination.
  1235. */
  1236. EndpointConfiguration?: HttpEndpointConfiguration;
  1237. /**
  1238. * Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint destination. Firehose teats these options as hints, and it might choose to use more optimal values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a value for one of them, you must also provide a value for the other.
  1239. */
  1240. BufferingHints?: HttpEndpointBufferingHints;
  1241. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1242. /**
  1243. * The configuration of the request sent to the HTTP endpoint specified as the destination.
  1244. */
  1245. RequestConfiguration?: HttpEndpointRequestConfiguration;
  1246. ProcessingConfiguration?: ProcessingConfiguration;
  1247. /**
  1248. * Firehose uses this IAM role for all the permissions that the delivery stream needs.
  1249. */
  1250. RoleARN?: RoleARN;
  1251. /**
  1252. * Describes the retry behavior in case Firehose is unable to deliver data to the specified HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint destination.
  1253. */
  1254. RetryOptions?: HttpEndpointRetryOptions;
  1255. /**
  1256. * Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint destination. You can back up all documents (AllData) or only the documents that Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly).
  1257. */
  1258. S3BackupMode?: HttpEndpointS3BackupMode;
  1259. S3Update?: S3DestinationUpdate;
  1260. }
  1261. export type HttpEndpointName = string;
  1262. export interface HttpEndpointRequestConfiguration {
  1263. /**
  1264. * Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see Content-Encoding in MDN Web Docs, the official Mozilla documentation.
  1265. */
  1266. ContentEncoding?: ContentEncoding;
  1267. /**
  1268. * Describes the metadata sent to the HTTP endpoint destination.
  1269. */
  1270. CommonAttributes?: HttpEndpointCommonAttributesList;
  1271. }
  1272. export type HttpEndpointRetryDurationInSeconds = number;
  1273. export interface HttpEndpointRetryOptions {
  1274. /**
  1275. * The total amount of time that Firehose spends on retries. This duration starts after the initial attempt to send data to the custom destination via HTTPS endpoint fails. It doesn't include the periods during which Firehose waits for acknowledgment from the specified destination after each attempt.
  1276. */
  1277. DurationInSeconds?: HttpEndpointRetryDurationInSeconds;
  1278. }
  1279. export type HttpEndpointS3BackupMode = "FailedDataOnly"|"AllData"|string;
  1280. export type HttpEndpointUrl = string;
  1281. export interface InputFormatConfiguration {
  1282. /**
  1283. * Specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. If both are non-null, the server rejects the request.
  1284. */
  1285. Deserializer?: Deserializer;
  1286. }
  1287. export type IntervalInSeconds = number;
  1288. export interface KMSEncryptionConfig {
  1289. /**
  1290. * The Amazon Resource Name (ARN) of the encryption key. Must belong to the same Amazon Web Services Region as the destination Amazon S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1291. */
  1292. AWSKMSKeyARN: AWSKMSKeyARN;
  1293. }
  1294. export type KeyType = "AWS_OWNED_CMK"|"CUSTOMER_MANAGED_CMK"|string;
  1295. export type KinesisStreamARN = string;
  1296. export interface KinesisStreamSourceConfiguration {
  1297. /**
  1298. * The ARN of the source Kinesis data stream. For more information, see Amazon Kinesis Data Streams ARN Format.
  1299. */
  1300. KinesisStreamARN: KinesisStreamARN;
  1301. /**
  1302. * The ARN of the role that provides access to the source Kinesis data stream. For more information, see Amazon Web Services Identity and Access Management (IAM) ARN Format.
  1303. */
  1304. RoleARN: RoleARN;
  1305. }
  1306. export interface KinesisStreamSourceDescription {
  1307. /**
  1308. * The Amazon Resource Name (ARN) of the source Kinesis data stream. For more information, see Amazon Kinesis Data Streams ARN Format.
  1309. */
  1310. KinesisStreamARN?: KinesisStreamARN;
  1311. /**
  1312. * The ARN of the role used by the source Kinesis data stream. For more information, see Amazon Web Services Identity and Access Management (IAM) ARN Format.
  1313. */
  1314. RoleARN?: RoleARN;
  1315. /**
  1316. * Firehose starts retrieving records from the Kinesis data stream starting with this timestamp.
  1317. */
  1318. DeliveryStartTimestamp?: DeliveryStartTimestamp;
  1319. }
  1320. export interface ListDeliveryStreamsInput {
  1321. /**
  1322. * The maximum number of delivery streams to list. The default value is 10.
  1323. */
  1324. Limit?: ListDeliveryStreamsInputLimit;
  1325. /**
  1326. * The delivery stream type. This can be one of the following values: DirectPut: Provider applications access the delivery stream directly. KinesisStreamAsSource: The delivery stream uses a Kinesis data stream as a source. This parameter is optional. If this parameter is omitted, delivery streams of all types are returned.
  1327. */
  1328. DeliveryStreamType?: DeliveryStreamType;
  1329. /**
  1330. * The list of delivery streams returned by this call to ListDeliveryStreams will start with the delivery stream whose name comes alphabetically immediately after the name you specify in ExclusiveStartDeliveryStreamName.
  1331. */
  1332. ExclusiveStartDeliveryStreamName?: DeliveryStreamName;
  1333. }
  1334. export type ListDeliveryStreamsInputLimit = number;
  1335. export interface ListDeliveryStreamsOutput {
  1336. /**
  1337. * The names of the delivery streams.
  1338. */
  1339. DeliveryStreamNames: DeliveryStreamNameList;
  1340. /**
  1341. * Indicates whether there are more delivery streams available to list.
  1342. */
  1343. HasMoreDeliveryStreams: BooleanObject;
  1344. }
  1345. export type ListOfNonEmptyStrings = NonEmptyString[];
  1346. export type ListOfNonEmptyStringsWithoutWhitespace = NonEmptyStringWithoutWhitespace[];
  1347. export interface ListTagsForDeliveryStreamInput {
  1348. /**
  1349. * The name of the delivery stream whose tags you want to list.
  1350. */
  1351. DeliveryStreamName: DeliveryStreamName;
  1352. /**
  1353. * The key to use as the starting point for the list of tags. If you set this parameter, ListTagsForDeliveryStream gets all tags that occur after ExclusiveStartTagKey.
  1354. */
  1355. ExclusiveStartTagKey?: TagKey;
  1356. /**
  1357. * The number of tags to return. If this number is less than the total number of tags associated with the delivery stream, HasMoreTags is set to true in the response. To list additional tags, set ExclusiveStartTagKey to the last key in the response.
  1358. */
  1359. Limit?: ListTagsForDeliveryStreamInputLimit;
  1360. }
  1361. export type ListTagsForDeliveryStreamInputLimit = number;
  1362. export interface ListTagsForDeliveryStreamOutput {
  1363. /**
  1364. * A list of tags associated with DeliveryStreamName, starting with the first tag after ExclusiveStartTagKey and up to the specified Limit.
  1365. */
  1366. Tags: ListTagsForDeliveryStreamOutputTagList;
  1367. /**
  1368. * If this is true in the response, more tags are available. To list the remaining tags, set ExclusiveStartTagKey to the key of the last tag returned and call ListTagsForDeliveryStream again.
  1369. */
  1370. HasMoreTags: BooleanObject;
  1371. }
  1372. export type ListTagsForDeliveryStreamOutputTagList = Tag[];
  1373. export type LogGroupName = string;
  1374. export type LogStreamName = string;
  1375. export type MSKClusterARN = string;
  1376. export interface MSKSourceConfiguration {
  1377. /**
  1378. * The ARN of the Amazon MSK cluster.
  1379. */
  1380. MSKClusterARN: MSKClusterARN;
  1381. /**
  1382. * The topic name within the Amazon MSK cluster.
  1383. */
  1384. TopicName: TopicName;
  1385. /**
  1386. * The authentication configuration of the Amazon MSK cluster.
  1387. */
  1388. AuthenticationConfiguration: AuthenticationConfiguration;
  1389. }
  1390. export interface MSKSourceDescription {
  1391. /**
  1392. * The ARN of the Amazon MSK cluster.
  1393. */
  1394. MSKClusterARN?: MSKClusterARN;
  1395. /**
  1396. * The topic name within the Amazon MSK cluster.
  1397. */
  1398. TopicName?: TopicName;
  1399. /**
  1400. * The authentication configuration of the Amazon MSK cluster.
  1401. */
  1402. AuthenticationConfiguration?: AuthenticationConfiguration;
  1403. /**
  1404. * Firehose starts retrieving records from the topic within the Amazon MSK cluster starting with this timestamp.
  1405. */
  1406. DeliveryStartTimestamp?: DeliveryStartTimestamp;
  1407. }
  1408. export type NoEncryptionConfig = "NoEncryption"|string;
  1409. export type NonEmptyString = string;
  1410. export type NonEmptyStringWithoutWhitespace = string;
  1411. export type NonNegativeIntegerObject = number;
  1412. export interface OpenXJsonSerDe {
  1413. /**
  1414. * When set to true, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option. The default is false.
  1415. */
  1416. ConvertDotsInJsonKeysToUnderscores?: BooleanObject;
  1417. /**
  1418. * When set to true, which is the default, Firehose converts JSON keys to lowercase before deserializing them.
  1419. */
  1420. CaseInsensitive?: BooleanObject;
  1421. /**
  1422. * Maps column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to {"ts": "timestamp"} to map this key to a column named ts.
  1423. */
  1424. ColumnToJsonKeyMappings?: ColumnToJsonKeyMappings;
  1425. }
  1426. export type OrcCompression = "NONE"|"ZLIB"|"SNAPPY"|string;
  1427. export type OrcFormatVersion = "V0_11"|"V0_12"|string;
  1428. export type OrcRowIndexStride = number;
  1429. export interface OrcSerDe {
  1430. /**
  1431. * The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB.
  1432. */
  1433. StripeSizeBytes?: OrcStripeSizeBytes;
  1434. /**
  1435. * The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Firehose uses this value for padding calculations.
  1436. */
  1437. BlockSizeBytes?: BlockSizeBytes;
  1438. /**
  1439. * The number of rows between index entries. The default is 10,000 and the minimum is 1,000.
  1440. */
  1441. RowIndexStride?: OrcRowIndexStride;
  1442. /**
  1443. * Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is false.
  1444. */
  1445. EnablePadding?: BooleanObject;
  1446. /**
  1447. * A number between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is 0.05, which means 5 percent of stripe size. For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task. Firehose ignores this parameter when OrcSerDe$EnablePadding is false.
  1448. */
  1449. PaddingTolerance?: Proportion;
  1450. /**
  1451. * The compression code to use over data blocks. The default is SNAPPY.
  1452. */
  1453. Compression?: OrcCompression;
  1454. /**
  1455. * The column names for which you want Firehose to create bloom filters. The default is null.
  1456. */
  1457. BloomFilterColumns?: ListOfNonEmptyStringsWithoutWhitespace;
  1458. /**
  1459. * The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1.
  1460. */
  1461. BloomFilterFalsePositiveProbability?: Proportion;
  1462. /**
  1463. * Represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1.
  1464. */
  1465. DictionaryKeyThreshold?: Proportion;
  1466. /**
  1467. * The version of the file to write. The possible values are V0_11 and V0_12. The default is V0_12.
  1468. */
  1469. FormatVersion?: OrcFormatVersion;
  1470. }
  1471. export type OrcStripeSizeBytes = number;
  1472. export interface OutputFormatConfiguration {
  1473. /**
  1474. * Specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. If both are non-null, the server rejects the request.
  1475. */
  1476. Serializer?: Serializer;
  1477. }
  1478. export type ParquetCompression = "UNCOMPRESSED"|"GZIP"|"SNAPPY"|string;
  1479. export type ParquetPageSizeBytes = number;
  1480. export interface ParquetSerDe {
  1481. /**
  1482. * The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Firehose uses this value for padding calculations.
  1483. */
  1484. BlockSizeBytes?: BlockSizeBytes;
  1485. /**
  1486. * The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB.
  1487. */
  1488. PageSizeBytes?: ParquetPageSizeBytes;
  1489. /**
  1490. * The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed.
  1491. */
  1492. Compression?: ParquetCompression;
  1493. /**
  1494. * Indicates whether to enable dictionary compression.
  1495. */
  1496. EnableDictionaryCompression?: BooleanObject;
  1497. /**
  1498. * The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0.
  1499. */
  1500. MaxPaddingBytes?: NonNegativeIntegerObject;
  1501. /**
  1502. * Indicates the version of row format to output. The possible values are V1 and V2. The default is V1.
  1503. */
  1504. WriterVersion?: ParquetWriterVersion;
  1505. }
  1506. export type ParquetWriterVersion = "V1"|"V2"|string;
  1507. export type Password = string;
  1508. export type Prefix = string;
  1509. export interface ProcessingConfiguration {
  1510. /**
  1511. * Enables or disables data processing.
  1512. */
  1513. Enabled?: BooleanObject;
  1514. /**
  1515. * The data processors.
  1516. */
  1517. Processors?: ProcessorList;
  1518. }
  1519. export interface Processor {
  1520. /**
  1521. * The type of processor.
  1522. */
  1523. Type: ProcessorType;
  1524. /**
  1525. * The processor parameters.
  1526. */
  1527. Parameters?: ProcessorParameterList;
  1528. }
  1529. export type ProcessorList = Processor[];
  1530. export interface ProcessorParameter {
  1531. /**
  1532. * The name of the parameter. Currently the following default values are supported: 3 for NumberOfRetries and 60 for the BufferIntervalInSeconds. The BufferSizeInMBs ranges between 0.2 MB and up to 3MB. The default buffering hint is 1MB for all destinations, except Splunk. For Splunk, the default buffering hint is 256 KB.
  1533. */
  1534. ParameterName: ProcessorParameterName;
  1535. /**
  1536. * The parameter value.
  1537. */
  1538. ParameterValue: ProcessorParameterValue;
  1539. }
  1540. export type ProcessorParameterList = ProcessorParameter[];
  1541. export type ProcessorParameterName = "LambdaArn"|"NumberOfRetries"|"MetadataExtractionQuery"|"JsonParsingEngine"|"RoleArn"|"BufferSizeInMBs"|"BufferIntervalInSeconds"|"SubRecordType"|"Delimiter"|"CompressionFormat"|"DataMessageExtraction"|string;
  1542. export type ProcessorParameterValue = string;
  1543. export type ProcessorType = "RecordDeAggregation"|"Decompression"|"CloudWatchLogProcessing"|"Lambda"|"MetadataExtraction"|"AppendDelimiterToRecord"|string;
  1544. export type Proportion = number;
  1545. export interface PutRecordBatchInput {
  1546. /**
  1547. * The name of the delivery stream.
  1548. */
  1549. DeliveryStreamName: DeliveryStreamName;
  1550. /**
  1551. * One or more records.
  1552. */
  1553. Records: PutRecordBatchRequestEntryList;
  1554. }
  1555. export interface PutRecordBatchOutput {
  1556. /**
  1557. * The number of records that might have failed processing. This number might be greater than 0 even if the PutRecordBatch call succeeds. Check FailedPutCount to determine whether there are records that you need to resend.
  1558. */
  1559. FailedPutCount: NonNegativeIntegerObject;
  1560. /**
  1561. * Indicates whether server-side encryption (SSE) was enabled during this operation.
  1562. */
  1563. Encrypted?: BooleanObject;
  1564. /**
  1565. * The results array. For each record, the index of the response element is the same as the index used in the request array.
  1566. */
  1567. RequestResponses: PutRecordBatchResponseEntryList;
  1568. }
  1569. export type PutRecordBatchRequestEntryList = Record[];
  1570. export interface PutRecordBatchResponseEntry {
  1571. /**
  1572. * The ID of the record.
  1573. */
  1574. RecordId?: PutResponseRecordId;
  1575. /**
  1576. * The error code for an individual record result.
  1577. */
  1578. ErrorCode?: ErrorCode;
  1579. /**
  1580. * The error message for an individual record result.
  1581. */
  1582. ErrorMessage?: ErrorMessage;
  1583. }
  1584. export type PutRecordBatchResponseEntryList = PutRecordBatchResponseEntry[];
  1585. export interface PutRecordInput {
  1586. /**
  1587. * The name of the delivery stream.
  1588. */
  1589. DeliveryStreamName: DeliveryStreamName;
  1590. /**
  1591. * The record.
  1592. */
  1593. Record: Record;
  1594. }
  1595. export interface PutRecordOutput {
  1596. /**
  1597. * The ID of the record.
  1598. */
  1599. RecordId: PutResponseRecordId;
  1600. /**
  1601. * Indicates whether server-side encryption (SSE) was enabled during this operation.
  1602. */
  1603. Encrypted?: BooleanObject;
  1604. }
  1605. export type PutResponseRecordId = string;
  1606. export interface Record {
  1607. /**
  1608. * The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KiB.
  1609. */
  1610. Data: Data;
  1611. }
  1612. export interface RedshiftDestinationConfiguration {
  1613. /**
  1614. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1615. */
  1616. RoleARN: RoleARN;
  1617. /**
  1618. * The database connection string.
  1619. */
  1620. ClusterJDBCURL: ClusterJDBCURL;
  1621. /**
  1622. * The COPY command.
  1623. */
  1624. CopyCommand: CopyCommand;
  1625. /**
  1626. * The name of the user.
  1627. */
  1628. Username: Username;
  1629. /**
  1630. * The user password.
  1631. */
  1632. Password: Password;
  1633. /**
  1634. * The retry behavior in case Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).
  1635. */
  1636. RetryOptions?: RedshiftRetryOptions;
  1637. /**
  1638. * The configuration for the intermediate Amazon S3 location from which Amazon Redshift obtains data. Restrictions are described in the topic for CreateDeliveryStream. The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.
  1639. */
  1640. S3Configuration: S3DestinationConfiguration;
  1641. /**
  1642. * The data processing configuration.
  1643. */
  1644. ProcessingConfiguration?: ProcessingConfiguration;
  1645. /**
  1646. * The Amazon S3 backup mode. After you create a delivery stream, you can update it to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
  1647. */
  1648. S3BackupMode?: RedshiftS3BackupMode;
  1649. /**
  1650. * The configuration for backup in Amazon S3.
  1651. */
  1652. S3BackupConfiguration?: S3DestinationConfiguration;
  1653. /**
  1654. * The CloudWatch logging options for your delivery stream.
  1655. */
  1656. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1657. }
  1658. export interface RedshiftDestinationDescription {
  1659. /**
  1660. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1661. */
  1662. RoleARN: RoleARN;
  1663. /**
  1664. * The database connection string.
  1665. */
  1666. ClusterJDBCURL: ClusterJDBCURL;
  1667. /**
  1668. * The COPY command.
  1669. */
  1670. CopyCommand: CopyCommand;
  1671. /**
  1672. * The name of the user.
  1673. */
  1674. Username: Username;
  1675. /**
  1676. * The retry behavior in case Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).
  1677. */
  1678. RetryOptions?: RedshiftRetryOptions;
  1679. /**
  1680. * The Amazon S3 destination.
  1681. */
  1682. S3DestinationDescription: S3DestinationDescription;
  1683. /**
  1684. * The data processing configuration.
  1685. */
  1686. ProcessingConfiguration?: ProcessingConfiguration;
  1687. /**
  1688. * The Amazon S3 backup mode.
  1689. */
  1690. S3BackupMode?: RedshiftS3BackupMode;
  1691. /**
  1692. * The configuration for backup in Amazon S3.
  1693. */
  1694. S3BackupDescription?: S3DestinationDescription;
  1695. /**
  1696. * The Amazon CloudWatch logging options for your delivery stream.
  1697. */
  1698. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1699. }
  1700. export interface RedshiftDestinationUpdate {
  1701. /**
  1702. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1703. */
  1704. RoleARN?: RoleARN;
  1705. /**
  1706. * The database connection string.
  1707. */
  1708. ClusterJDBCURL?: ClusterJDBCURL;
  1709. /**
  1710. * The COPY command.
  1711. */
  1712. CopyCommand?: CopyCommand;
  1713. /**
  1714. * The name of the user.
  1715. */
  1716. Username?: Username;
  1717. /**
  1718. * The user password.
  1719. */
  1720. Password?: Password;
  1721. /**
  1722. * The retry behavior in case Firehose is unable to deliver documents to Amazon Redshift. Default value is 3600 (60 minutes).
  1723. */
  1724. RetryOptions?: RedshiftRetryOptions;
  1725. /**
  1726. * The Amazon S3 destination. The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationUpdate.S3Update because the Amazon Redshift COPY operation that reads from the S3 bucket doesn't support these compression formats.
  1727. */
  1728. S3Update?: S3DestinationUpdate;
  1729. /**
  1730. * The data processing configuration.
  1731. */
  1732. ProcessingConfiguration?: ProcessingConfiguration;
  1733. /**
  1734. * You can update a delivery stream to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
  1735. */
  1736. S3BackupMode?: RedshiftS3BackupMode;
  1737. /**
  1738. * The Amazon S3 destination for backup.
  1739. */
  1740. S3BackupUpdate?: S3DestinationUpdate;
  1741. /**
  1742. * The Amazon CloudWatch logging options for your delivery stream.
  1743. */
  1744. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1745. }
  1746. export type RedshiftRetryDurationInSeconds = number;
  1747. export interface RedshiftRetryOptions {
  1748. /**
  1749. * The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt. The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value.
  1750. */
  1751. DurationInSeconds?: RedshiftRetryDurationInSeconds;
  1752. }
  1753. export type RedshiftS3BackupMode = "Disabled"|"Enabled"|string;
  1754. export type RetryDurationInSeconds = number;
  1755. export interface RetryOptions {
  1756. /**
  1757. * The period of time during which Firehose retries to deliver data to the specified Amazon S3 prefix.
  1758. */
  1759. DurationInSeconds?: RetryDurationInSeconds;
  1760. }
  1761. export type RoleARN = string;
  1762. export type S3BackupMode = "Disabled"|"Enabled"|string;
  1763. export interface S3DestinationConfiguration {
  1764. /**
  1765. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1766. */
  1767. RoleARN: RoleARN;
  1768. /**
  1769. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1770. */
  1771. BucketARN: BucketARN;
  1772. /**
  1773. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  1774. */
  1775. Prefix?: Prefix;
  1776. /**
  1777. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  1778. */
  1779. ErrorOutputPrefix?: ErrorOutputPrefix;
  1780. /**
  1781. * The buffering option. If no value is specified, BufferingHints object default values are used.
  1782. */
  1783. BufferingHints?: BufferingHints;
  1784. /**
  1785. * The compression format. If no value is specified, the default is UNCOMPRESSED. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.
  1786. */
  1787. CompressionFormat?: CompressionFormat;
  1788. /**
  1789. * The encryption configuration. If no value is specified, the default is no encryption.
  1790. */
  1791. EncryptionConfiguration?: EncryptionConfiguration;
  1792. /**
  1793. * The CloudWatch logging options for your delivery stream.
  1794. */
  1795. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1796. }
  1797. export interface S3DestinationDescription {
  1798. /**
  1799. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1800. */
  1801. RoleARN: RoleARN;
  1802. /**
  1803. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1804. */
  1805. BucketARN: BucketARN;
  1806. /**
  1807. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  1808. */
  1809. Prefix?: Prefix;
  1810. /**
  1811. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  1812. */
  1813. ErrorOutputPrefix?: ErrorOutputPrefix;
  1814. /**
  1815. * The buffering option. If no value is specified, BufferingHints object default values are used.
  1816. */
  1817. BufferingHints: BufferingHints;
  1818. /**
  1819. * The compression format. If no value is specified, the default is UNCOMPRESSED.
  1820. */
  1821. CompressionFormat: CompressionFormat;
  1822. /**
  1823. * The encryption configuration. If no value is specified, the default is no encryption.
  1824. */
  1825. EncryptionConfiguration: EncryptionConfiguration;
  1826. /**
  1827. * The Amazon CloudWatch logging options for your delivery stream.
  1828. */
  1829. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1830. }
  1831. export interface S3DestinationUpdate {
  1832. /**
  1833. * The Amazon Resource Name (ARN) of the Amazon Web Services credentials. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1834. */
  1835. RoleARN?: RoleARN;
  1836. /**
  1837. * The ARN of the S3 bucket. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
  1838. */
  1839. BucketARN?: BucketARN;
  1840. /**
  1841. * The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files. You can also specify a custom prefix, as described in Custom Prefixes for Amazon S3 Objects.
  1842. */
  1843. Prefix?: Prefix;
  1844. /**
  1845. * A prefix that Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see Custom Prefixes for Amazon S3 Objects.
  1846. */
  1847. ErrorOutputPrefix?: ErrorOutputPrefix;
  1848. /**
  1849. * The buffering option. If no value is specified, BufferingHints object default values are used.
  1850. */
  1851. BufferingHints?: BufferingHints;
  1852. /**
  1853. * The compression format. If no value is specified, the default is UNCOMPRESSED. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket.
  1854. */
  1855. CompressionFormat?: CompressionFormat;
  1856. /**
  1857. * The encryption configuration. If no value is specified, the default is no encryption.
  1858. */
  1859. EncryptionConfiguration?: EncryptionConfiguration;
  1860. /**
  1861. * The CloudWatch logging options for your delivery stream.
  1862. */
  1863. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1864. }
  1865. export interface SchemaConfiguration {
  1866. /**
  1867. * The role that Firehose can use to access Amazon Web Services Glue. This role must be in the same account you use for Firehose. Cross-account roles aren't allowed. If the SchemaConfiguration request parameter is used as part of invoking the CreateDeliveryStream API, then the RoleARN property is required and its value must be specified.
  1868. */
  1869. RoleARN?: NonEmptyStringWithoutWhitespace;
  1870. /**
  1871. * The ID of the Amazon Web Services Glue Data Catalog. If you don't supply this, the Amazon Web Services account ID is used by default.
  1872. */
  1873. CatalogId?: NonEmptyStringWithoutWhitespace;
  1874. /**
  1875. * Specifies the name of the Amazon Web Services Glue database that contains the schema for the output data. If the SchemaConfiguration request parameter is used as part of invoking the CreateDeliveryStream API, then the DatabaseName property is required and its value must be specified.
  1876. */
  1877. DatabaseName?: NonEmptyStringWithoutWhitespace;
  1878. /**
  1879. * Specifies the Amazon Web Services Glue table that contains the column information that constitutes your data schema. If the SchemaConfiguration request parameter is used as part of invoking the CreateDeliveryStream API, then the TableName property is required and its value must be specified.
  1880. */
  1881. TableName?: NonEmptyStringWithoutWhitespace;
  1882. /**
  1883. * If you don't specify an Amazon Web Services Region, the default is the current Region.
  1884. */
  1885. Region?: NonEmptyStringWithoutWhitespace;
  1886. /**
  1887. * Specifies the table version for the output data schema. If you don't specify this version ID, or if you set it to LATEST, Firehose uses the most recent version. This means that any updates to the table are automatically picked up.
  1888. */
  1889. VersionId?: NonEmptyStringWithoutWhitespace;
  1890. }
  1891. export type SecurityGroupIdList = NonEmptyStringWithoutWhitespace[];
  1892. export interface Serializer {
  1893. /**
  1894. * A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see Apache Parquet.
  1895. */
  1896. ParquetSerDe?: ParquetSerDe;
  1897. /**
  1898. * A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see Apache ORC.
  1899. */
  1900. OrcSerDe?: OrcSerDe;
  1901. }
  1902. export type SizeInMBs = number;
  1903. export type SnowflakeAccountUrl = string;
  1904. export type SnowflakeContentColumnName = string;
  1905. export type SnowflakeDataLoadingOption = "JSON_MAPPING"|"VARIANT_CONTENT_MAPPING"|"VARIANT_CONTENT_AND_METADATA_MAPPING"|string;
  1906. export type SnowflakeDatabase = string;
  1907. export interface SnowflakeDestinationConfiguration {
  1908. /**
  1909. * URL for accessing your Snowflake account. This URL must include your account identifier. Note that the protocol (https://) and port number are optional.
  1910. */
  1911. AccountUrl: SnowflakeAccountUrl;
  1912. /**
  1913. * The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication &amp; Key Rotation.
  1914. */
  1915. PrivateKey: SnowflakePrivateKey;
  1916. /**
  1917. * Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication &amp; Key Rotation.
  1918. */
  1919. KeyPassphrase?: SnowflakeKeyPassphrase;
  1920. /**
  1921. * User login name for the Snowflake account.
  1922. */
  1923. User: SnowflakeUser;
  1924. /**
  1925. * All data in Snowflake is maintained in databases.
  1926. */
  1927. Database: SnowflakeDatabase;
  1928. /**
  1929. * Each database consists of one or more schemas, which are logical groupings of database objects, such as tables and views
  1930. */
  1931. Schema: SnowflakeSchema;
  1932. /**
  1933. * All data in Snowflake is stored in database tables, logically structured as collections of columns and rows.
  1934. */
  1935. Table: SnowflakeTable;
  1936. /**
  1937. * Optionally configure a Snowflake role. Otherwise the default user role will be used.
  1938. */
  1939. SnowflakeRoleConfiguration?: SnowflakeRoleConfiguration;
  1940. /**
  1941. * Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped to a record content column and source metadata is mapped to a record metadata column.
  1942. */
  1943. DataLoadingOption?: SnowflakeDataLoadingOption;
  1944. /**
  1945. * The name of the record metadata column
  1946. */
  1947. MetaDataColumnName?: SnowflakeMetaDataColumnName;
  1948. /**
  1949. * The name of the record content column
  1950. */
  1951. ContentColumnName?: SnowflakeContentColumnName;
  1952. /**
  1953. * The VPCE ID for Firehose to privately connect with Snowflake. The ID format is com.amazonaws.vpce.[region].vpce-svc-&lt;[id]&gt;. For more information, see Amazon PrivateLink &amp; Snowflake
  1954. */
  1955. SnowflakeVpcConfiguration?: SnowflakeVpcConfiguration;
  1956. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  1957. ProcessingConfiguration?: ProcessingConfiguration;
  1958. /**
  1959. * The Amazon Resource Name (ARN) of the Snowflake role
  1960. */
  1961. RoleARN: RoleARN;
  1962. /**
  1963. * The time period where Firehose will retry sending data to the chosen HTTP endpoint.
  1964. */
  1965. RetryOptions?: SnowflakeRetryOptions;
  1966. /**
  1967. * Choose an S3 backup mode
  1968. */
  1969. S3BackupMode?: SnowflakeS3BackupMode;
  1970. S3Configuration: S3DestinationConfiguration;
  1971. }
  1972. export interface SnowflakeDestinationDescription {
  1973. /**
  1974. * URL for accessing your Snowflake account. This URL must include your account identifier. Note that the protocol (https://) and port number are optional.
  1975. */
  1976. AccountUrl?: SnowflakeAccountUrl;
  1977. /**
  1978. * User login name for the Snowflake account.
  1979. */
  1980. User?: SnowflakeUser;
  1981. /**
  1982. * All data in Snowflake is maintained in databases.
  1983. */
  1984. Database?: SnowflakeDatabase;
  1985. /**
  1986. * Each database consists of one or more schemas, which are logical groupings of database objects, such as tables and views
  1987. */
  1988. Schema?: SnowflakeSchema;
  1989. /**
  1990. * All data in Snowflake is stored in database tables, logically structured as collections of columns and rows.
  1991. */
  1992. Table?: SnowflakeTable;
  1993. /**
  1994. * Optionally configure a Snowflake role. Otherwise the default user role will be used.
  1995. */
  1996. SnowflakeRoleConfiguration?: SnowflakeRoleConfiguration;
  1997. /**
  1998. * Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped to a record content column and source metadata is mapped to a record metadata column.
  1999. */
  2000. DataLoadingOption?: SnowflakeDataLoadingOption;
  2001. /**
  2002. * The name of the record metadata column
  2003. */
  2004. MetaDataColumnName?: SnowflakeMetaDataColumnName;
  2005. /**
  2006. * The name of the record content column
  2007. */
  2008. ContentColumnName?: SnowflakeContentColumnName;
  2009. /**
  2010. * The VPCE ID for Firehose to privately connect with Snowflake. The ID format is com.amazonaws.vpce.[region].vpce-svc-&lt;[id]&gt;. For more information, see Amazon PrivateLink &amp; Snowflake
  2011. */
  2012. SnowflakeVpcConfiguration?: SnowflakeVpcConfiguration;
  2013. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  2014. ProcessingConfiguration?: ProcessingConfiguration;
  2015. /**
  2016. * The Amazon Resource Name (ARN) of the Snowflake role
  2017. */
  2018. RoleARN?: RoleARN;
  2019. /**
  2020. * The time period where Firehose will retry sending data to the chosen HTTP endpoint.
  2021. */
  2022. RetryOptions?: SnowflakeRetryOptions;
  2023. /**
  2024. * Choose an S3 backup mode
  2025. */
  2026. S3BackupMode?: SnowflakeS3BackupMode;
  2027. S3DestinationDescription?: S3DestinationDescription;
  2028. }
  2029. export interface SnowflakeDestinationUpdate {
  2030. /**
  2031. * URL for accessing your Snowflake account. This URL must include your account identifier. Note that the protocol (https://) and port number are optional.
  2032. */
  2033. AccountUrl?: SnowflakeAccountUrl;
  2034. /**
  2035. * The private key used to encrypt your Snowflake client. For information, see Using Key Pair Authentication &amp; Key Rotation.
  2036. */
  2037. PrivateKey?: SnowflakePrivateKey;
  2038. /**
  2039. * Passphrase to decrypt the private key when the key is encrypted. For information, see Using Key Pair Authentication &amp; Key Rotation.
  2040. */
  2041. KeyPassphrase?: SnowflakeKeyPassphrase;
  2042. /**
  2043. * User login name for the Snowflake account.
  2044. */
  2045. User?: SnowflakeUser;
  2046. /**
  2047. * All data in Snowflake is maintained in databases.
  2048. */
  2049. Database?: SnowflakeDatabase;
  2050. /**
  2051. * Each database consists of one or more schemas, which are logical groupings of database objects, such as tables and views
  2052. */
  2053. Schema?: SnowflakeSchema;
  2054. /**
  2055. * All data in Snowflake is stored in database tables, logically structured as collections of columns and rows.
  2056. */
  2057. Table?: SnowflakeTable;
  2058. /**
  2059. * Optionally configure a Snowflake role. Otherwise the default user role will be used.
  2060. */
  2061. SnowflakeRoleConfiguration?: SnowflakeRoleConfiguration;
  2062. /**
  2063. * JSON keys mapped to table column names or choose to split the JSON payload where content is mapped to a record content column and source metadata is mapped to a record metadata column.
  2064. */
  2065. DataLoadingOption?: SnowflakeDataLoadingOption;
  2066. /**
  2067. * The name of the record metadata column
  2068. */
  2069. MetaDataColumnName?: SnowflakeMetaDataColumnName;
  2070. /**
  2071. * The name of the content metadata column
  2072. */
  2073. ContentColumnName?: SnowflakeContentColumnName;
  2074. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  2075. ProcessingConfiguration?: ProcessingConfiguration;
  2076. /**
  2077. * The Amazon Resource Name (ARN) of the Snowflake role
  2078. */
  2079. RoleARN?: RoleARN;
  2080. /**
  2081. * Specify how long Firehose retries sending data to the New Relic HTTP endpoint. After sending data, Firehose first waits for an acknowledgment from the HTTP endpoint. If an error occurs or the acknowledgment doesn’t arrive within the acknowledgment timeout period, Firehose starts the retry duration counter. It keeps retrying until the retry duration expires. After that, Firehose considers it a data delivery failure and backs up the data to your Amazon S3 bucket. Every time that Firehose sends data to the HTTP endpoint (either the initial attempt or a retry), it restarts the acknowledgement timeout counter and waits for an acknowledgement from the HTTP endpoint. Even if the retry duration expires, Firehose still waits for the acknowledgment until it receives it or the acknowledgement timeout period is reached. If the acknowledgment times out, Firehose determines whether there's time left in the retry counter. If there is time left, it retries again and repeats the logic until it receives an acknowledgment or determines that the retry time has expired. If you don't want Firehose to retry sending data, set this value to 0.
  2082. */
  2083. RetryOptions?: SnowflakeRetryOptions;
  2084. /**
  2085. * Choose an S3 backup mode
  2086. */
  2087. S3BackupMode?: SnowflakeS3BackupMode;
  2088. S3Update?: S3DestinationUpdate;
  2089. }
  2090. export type SnowflakeKeyPassphrase = string;
  2091. export type SnowflakeMetaDataColumnName = string;
  2092. export type SnowflakePrivateKey = string;
  2093. export type SnowflakePrivateLinkVpceId = string;
  2094. export type SnowflakeRetryDurationInSeconds = number;
  2095. export interface SnowflakeRetryOptions {
  2096. /**
  2097. * the time period where Firehose will retry sending data to the chosen HTTP endpoint.
  2098. */
  2099. DurationInSeconds?: SnowflakeRetryDurationInSeconds;
  2100. }
  2101. export type SnowflakeRole = string;
  2102. export interface SnowflakeRoleConfiguration {
  2103. /**
  2104. * Enable Snowflake role
  2105. */
  2106. Enabled?: BooleanObject;
  2107. /**
  2108. * The Snowflake role you wish to configure
  2109. */
  2110. SnowflakeRole?: SnowflakeRole;
  2111. }
  2112. export type SnowflakeS3BackupMode = "FailedDataOnly"|"AllData"|string;
  2113. export type SnowflakeSchema = string;
  2114. export type SnowflakeTable = string;
  2115. export type SnowflakeUser = string;
  2116. export interface SnowflakeVpcConfiguration {
  2117. /**
  2118. * The VPCE ID for Firehose to privately connect with Snowflake. The ID format is com.amazonaws.vpce.[region].vpce-svc-&lt;[id]&gt;. For more information, see Amazon PrivateLink &amp; Snowflake
  2119. */
  2120. PrivateLinkVpceId: SnowflakePrivateLinkVpceId;
  2121. }
  2122. export interface SourceDescription {
  2123. /**
  2124. * The KinesisStreamSourceDescription value for the source Kinesis data stream.
  2125. */
  2126. KinesisStreamSourceDescription?: KinesisStreamSourceDescription;
  2127. /**
  2128. * The configuration description for the Amazon MSK cluster to be used as the source for a delivery stream.
  2129. */
  2130. MSKSourceDescription?: MSKSourceDescription;
  2131. }
  2132. export interface SplunkBufferingHints {
  2133. /**
  2134. * Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).
  2135. */
  2136. IntervalInSeconds?: SplunkBufferingIntervalInSeconds;
  2137. /**
  2138. * Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
  2139. */
  2140. SizeInMBs?: SplunkBufferingSizeInMBs;
  2141. }
  2142. export type SplunkBufferingIntervalInSeconds = number;
  2143. export type SplunkBufferingSizeInMBs = number;
  2144. export interface SplunkDestinationConfiguration {
  2145. /**
  2146. * The HTTP Event Collector (HEC) endpoint to which Firehose sends your data.
  2147. */
  2148. HECEndpoint: HECEndpoint;
  2149. /**
  2150. * This type can be either "Raw" or "Event."
  2151. */
  2152. HECEndpointType: HECEndpointType;
  2153. /**
  2154. * This is a GUID that you obtain from your Splunk cluster when you create a new HEC endpoint.
  2155. */
  2156. HECToken: HECToken;
  2157. /**
  2158. * The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends it data. At the end of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry settings.
  2159. */
  2160. HECAcknowledgmentTimeoutInSeconds?: HECAcknowledgmentTimeoutInSeconds;
  2161. /**
  2162. * The retry behavior in case Firehose is unable to deliver data to Splunk, or if it doesn't receive an acknowledgment of receipt from Splunk.
  2163. */
  2164. RetryOptions?: SplunkRetryOptions;
  2165. /**
  2166. * Defines how documents should be delivered to Amazon S3. When set to FailedEventsOnly, Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to Amazon S3. The default value is FailedEventsOnly. You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it from AllEvents to FailedEventsOnly.
  2167. */
  2168. S3BackupMode?: SplunkS3BackupMode;
  2169. /**
  2170. * The configuration for the backup Amazon S3 location.
  2171. */
  2172. S3Configuration: S3DestinationConfiguration;
  2173. /**
  2174. * The data processing configuration.
  2175. */
  2176. ProcessingConfiguration?: ProcessingConfiguration;
  2177. /**
  2178. * The Amazon CloudWatch logging options for your delivery stream.
  2179. */
  2180. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  2181. /**
  2182. * The buffering options. If no value is specified, the default values for Splunk are used.
  2183. */
  2184. BufferingHints?: SplunkBufferingHints;
  2185. }
  2186. export interface SplunkDestinationDescription {
  2187. /**
  2188. * The HTTP Event Collector (HEC) endpoint to which Firehose sends your data.
  2189. */
  2190. HECEndpoint?: HECEndpoint;
  2191. /**
  2192. * This type can be either "Raw" or "Event."
  2193. */
  2194. HECEndpointType?: HECEndpointType;
  2195. /**
  2196. * A GUID you obtain from your Splunk cluster when you create a new HEC endpoint.
  2197. */
  2198. HECToken?: HECToken;
  2199. /**
  2200. * The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends it data. At the end of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry settings.
  2201. */
  2202. HECAcknowledgmentTimeoutInSeconds?: HECAcknowledgmentTimeoutInSeconds;
  2203. /**
  2204. * The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.
  2205. */
  2206. RetryOptions?: SplunkRetryOptions;
  2207. /**
  2208. * Defines how documents should be delivered to Amazon S3. When set to FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to Amazon S3. Default value is FailedDocumentsOnly.
  2209. */
  2210. S3BackupMode?: SplunkS3BackupMode;
  2211. /**
  2212. * The Amazon S3 destination.&gt;
  2213. */
  2214. S3DestinationDescription?: S3DestinationDescription;
  2215. /**
  2216. * The data processing configuration.
  2217. */
  2218. ProcessingConfiguration?: ProcessingConfiguration;
  2219. /**
  2220. * The Amazon CloudWatch logging options for your delivery stream.
  2221. */
  2222. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  2223. /**
  2224. * The buffering options. If no value is specified, the default values for Splunk are used.
  2225. */
  2226. BufferingHints?: SplunkBufferingHints;
  2227. }
  2228. export interface SplunkDestinationUpdate {
  2229. /**
  2230. * The HTTP Event Collector (HEC) endpoint to which Firehose sends your data.
  2231. */
  2232. HECEndpoint?: HECEndpoint;
  2233. /**
  2234. * This type can be either "Raw" or "Event."
  2235. */
  2236. HECEndpointType?: HECEndpointType;
  2237. /**
  2238. * A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint.
  2239. */
  2240. HECToken?: HECToken;
  2241. /**
  2242. * The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At the end of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry settings.
  2243. */
  2244. HECAcknowledgmentTimeoutInSeconds?: HECAcknowledgmentTimeoutInSeconds;
  2245. /**
  2246. * The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.
  2247. */
  2248. RetryOptions?: SplunkRetryOptions;
  2249. /**
  2250. * Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to Amazon S3. The default value is FailedEventsOnly. You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it from AllEvents to FailedEventsOnly.
  2251. */
  2252. S3BackupMode?: SplunkS3BackupMode;
  2253. /**
  2254. * Your update to the configuration of the backup Amazon S3 location.
  2255. */
  2256. S3Update?: S3DestinationUpdate;
  2257. /**
  2258. * The data processing configuration.
  2259. */
  2260. ProcessingConfiguration?: ProcessingConfiguration;
  2261. /**
  2262. * The Amazon CloudWatch logging options for your delivery stream.
  2263. */
  2264. CloudWatchLoggingOptions?: CloudWatchLoggingOptions;
  2265. /**
  2266. * The buffering options. If no value is specified, the default values for Splunk are used.
  2267. */
  2268. BufferingHints?: SplunkBufferingHints;
  2269. }
  2270. export type SplunkRetryDurationInSeconds = number;
  2271. export interface SplunkRetryOptions {
  2272. /**
  2273. * The total amount of time that Firehose spends on retries. This duration starts after the initial attempt to send data to Splunk fails. It doesn't include the periods during which Firehose waits for acknowledgment from Splunk after each attempt.
  2274. */
  2275. DurationInSeconds?: SplunkRetryDurationInSeconds;
  2276. }
  2277. export type SplunkS3BackupMode = "FailedEventsOnly"|"AllEvents"|string;
  2278. export interface StartDeliveryStreamEncryptionInput {
  2279. /**
  2280. * The name of the delivery stream for which you want to enable server-side encryption (SSE).
  2281. */
  2282. DeliveryStreamName: DeliveryStreamName;
  2283. /**
  2284. * Used to specify the type and Amazon Resource Name (ARN) of the KMS key needed for Server-Side Encryption (SSE).
  2285. */
  2286. DeliveryStreamEncryptionConfigurationInput?: DeliveryStreamEncryptionConfigurationInput;
  2287. }
  2288. export interface StartDeliveryStreamEncryptionOutput {
  2289. }
  2290. export interface StopDeliveryStreamEncryptionInput {
  2291. /**
  2292. * The name of the delivery stream for which you want to disable server-side encryption (SSE).
  2293. */
  2294. DeliveryStreamName: DeliveryStreamName;
  2295. }
  2296. export interface StopDeliveryStreamEncryptionOutput {
  2297. }
  2298. export type SubnetIdList = NonEmptyStringWithoutWhitespace[];
  2299. export interface Tag {
  2300. /**
  2301. * A unique identifier for the tag. Maximum length: 128 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
  2302. */
  2303. Key: TagKey;
  2304. /**
  2305. * An optional string, which you can use to describe or define the tag. Maximum length: 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - % @
  2306. */
  2307. Value?: TagValue;
  2308. }
  2309. export interface TagDeliveryStreamInput {
  2310. /**
  2311. * The name of the delivery stream to which you want to add the tags.
  2312. */
  2313. DeliveryStreamName: DeliveryStreamName;
  2314. /**
  2315. * A set of key-value pairs to use to create the tags.
  2316. */
  2317. Tags: TagDeliveryStreamInputTagList;
  2318. }
  2319. export type TagDeliveryStreamInputTagList = Tag[];
  2320. export interface TagDeliveryStreamOutput {
  2321. }
  2322. export type TagKey = string;
  2323. export type TagKeyList = TagKey[];
  2324. export type TagValue = string;
  2325. export type Timestamp = Date;
  2326. export type TopicName = string;
  2327. export interface UntagDeliveryStreamInput {
  2328. /**
  2329. * The name of the delivery stream.
  2330. */
  2331. DeliveryStreamName: DeliveryStreamName;
  2332. /**
  2333. * A list of tag keys. Each corresponding tag is removed from the delivery stream.
  2334. */
  2335. TagKeys: TagKeyList;
  2336. }
  2337. export interface UntagDeliveryStreamOutput {
  2338. }
  2339. export interface UpdateDestinationInput {
  2340. /**
  2341. * The name of the delivery stream.
  2342. */
  2343. DeliveryStreamName: DeliveryStreamName;
  2344. /**
  2345. * Obtain this value from the VersionId result of DeliveryStreamDescription. This value is required, and helps the service perform conditional operations. For example, if there is an interleaving update and this value is null, then the update destination fails. After the update is successful, the VersionId value is updated. The service then performs a merge of the old configuration with the new configuration.
  2346. */
  2347. CurrentDeliveryStreamVersionId: DeliveryStreamVersionId;
  2348. /**
  2349. * The ID of the destination.
  2350. */
  2351. DestinationId: DestinationId;
  2352. /**
  2353. * [Deprecated] Describes an update for a destination in Amazon S3.
  2354. */
  2355. S3DestinationUpdate?: S3DestinationUpdate;
  2356. /**
  2357. * Describes an update for a destination in Amazon S3.
  2358. */
  2359. ExtendedS3DestinationUpdate?: ExtendedS3DestinationUpdate;
  2360. /**
  2361. * Describes an update for a destination in Amazon Redshift.
  2362. */
  2363. RedshiftDestinationUpdate?: RedshiftDestinationUpdate;
  2364. /**
  2365. * Describes an update for a destination in Amazon ES.
  2366. */
  2367. ElasticsearchDestinationUpdate?: ElasticsearchDestinationUpdate;
  2368. /**
  2369. * Describes an update for a destination in Amazon OpenSearch Service.
  2370. */
  2371. AmazonopensearchserviceDestinationUpdate?: AmazonopensearchserviceDestinationUpdate;
  2372. /**
  2373. * Describes an update for a destination in Splunk.
  2374. */
  2375. SplunkDestinationUpdate?: SplunkDestinationUpdate;
  2376. /**
  2377. * Describes an update to the specified HTTP endpoint destination.
  2378. */
  2379. HttpEndpointDestinationUpdate?: HttpEndpointDestinationUpdate;
  2380. /**
  2381. * Describes an update for a destination in the Serverless offering for Amazon OpenSearch Service.
  2382. */
  2383. AmazonOpenSearchServerlessDestinationUpdate?: AmazonOpenSearchServerlessDestinationUpdate;
  2384. /**
  2385. * Update to the Snowflake destination condiguration settings
  2386. */
  2387. SnowflakeDestinationUpdate?: SnowflakeDestinationUpdate;
  2388. }
  2389. export interface UpdateDestinationOutput {
  2390. }
  2391. export type Username = string;
  2392. export interface VpcConfiguration {
  2393. /**
  2394. * The IDs of the subnets that you want Firehose to use to create ENIs in the VPC of the Amazon ES destination. Make sure that the routing tables and inbound and outbound rules allow traffic to flow from the subnets whose IDs are specified here to the subnets that have the destination Amazon ES endpoints. Firehose creates at least one ENI in each of the subnets that are specified here. Do not delete or modify these ENIs. The number of ENIs that Firehose creates in the subnets specified here scales up and down automatically based on throughput. To enable Firehose to scale up the number of ENIs to match throughput, ensure that you have sufficient quota. To help you calculate the quota you need, assume that Firehose can create up to three ENIs for this delivery stream for each of the subnets specified here. For more information about ENI quota, see Network Interfaces in the Amazon VPC Quotas topic.
  2395. */
  2396. SubnetIds: SubnetIdList;
  2397. /**
  2398. * The ARN of the IAM role that you want the delivery stream to use to create endpoints in the destination VPC. You can use your existing Firehose delivery role or you can specify a new role. In either case, make sure that the role trusts the Firehose service principal and that it grants the following permissions: ec2:DescribeVpcs ec2:DescribeVpcAttribute ec2:DescribeSubnets ec2:DescribeSecurityGroups ec2:DescribeNetworkInterfaces ec2:CreateNetworkInterface ec2:CreateNetworkInterfacePermission ec2:DeleteNetworkInterface When you specify subnets for delivering data to the destination in a private VPC, make sure you have enough number of free IP addresses in chosen subnets. If there is no available free IP address in a specified subnet, Firehose cannot create or add ENIs for the data delivery in the private VPC, and the delivery will be degraded or fail.
  2399. */
  2400. RoleARN: RoleARN;
  2401. /**
  2402. * The IDs of the security groups that you want Firehose to use when it creates ENIs in the VPC of the Amazon ES destination. You can use the same security group that the Amazon ES domain uses or different ones. If you specify different security groups here, ensure that they allow outbound HTTPS traffic to the Amazon ES domain's security group. Also ensure that the Amazon ES domain's security group allows HTTPS traffic from the security groups specified here. If you use the same security group for both your delivery stream and the Amazon ES domain, make sure the security group inbound rule allows HTTPS traffic. For more information about security group rules, see Security group rules in the Amazon VPC documentation.
  2403. */
  2404. SecurityGroupIds: SecurityGroupIdList;
  2405. }
  2406. export interface VpcConfigurationDescription {
  2407. /**
  2408. * The IDs of the subnets that Firehose uses to create ENIs in the VPC of the Amazon ES destination. Make sure that the routing tables and inbound and outbound rules allow traffic to flow from the subnets whose IDs are specified here to the subnets that have the destination Amazon ES endpoints. Firehose creates at least one ENI in each of the subnets that are specified here. Do not delete or modify these ENIs. The number of ENIs that Firehose creates in the subnets specified here scales up and down automatically based on throughput. To enable Firehose to scale up the number of ENIs to match throughput, ensure that you have sufficient quota. To help you calculate the quota you need, assume that Firehose can create up to three ENIs for this delivery stream for each of the subnets specified here. For more information about ENI quota, see Network Interfaces in the Amazon VPC Quotas topic.
  2409. */
  2410. SubnetIds: SubnetIdList;
  2411. /**
  2412. * The ARN of the IAM role that the delivery stream uses to create endpoints in the destination VPC. You can use your existing Firehose delivery role or you can specify a new role. In either case, make sure that the role trusts the Firehose service principal and that it grants the following permissions: ec2:DescribeVpcs ec2:DescribeVpcAttribute ec2:DescribeSubnets ec2:DescribeSecurityGroups ec2:DescribeNetworkInterfaces ec2:CreateNetworkInterface ec2:CreateNetworkInterfacePermission ec2:DeleteNetworkInterface If you revoke these permissions after you create the delivery stream, Firehose can't scale out by creating more ENIs when necessary. You might therefore see a degradation in performance.
  2413. */
  2414. RoleARN: RoleARN;
  2415. /**
  2416. * The IDs of the security groups that Firehose uses when it creates ENIs in the VPC of the Amazon ES destination. You can use the same security group that the Amazon ES domain uses or different ones. If you specify different security groups, ensure that they allow outbound HTTPS traffic to the Amazon ES domain's security group. Also ensure that the Amazon ES domain's security group allows HTTPS traffic from the security groups specified here. If you use the same security group for both your delivery stream and the Amazon ES domain, make sure the security group inbound rule allows HTTPS traffic. For more information about security group rules, see Security group rules in the Amazon VPC documentation.
  2417. */
  2418. SecurityGroupIds: SecurityGroupIdList;
  2419. /**
  2420. * The ID of the Amazon ES destination's VPC.
  2421. */
  2422. VpcId: NonEmptyStringWithoutWhitespace;
  2423. }
  2424. /**
  2425. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  2426. */
  2427. export type apiVersion = "2015-08-04"|"latest"|string;
  2428. export interface ClientApiVersions {
  2429. /**
  2430. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  2431. */
  2432. apiVersion?: apiVersion;
  2433. }
  2434. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  2435. /**
  2436. * Contains interfaces for use with the Firehose client.
  2437. */
  2438. export import Types = Firehose;
  2439. }
  2440. export = Firehose;