Documentation ¶
Overview ¶
Package qldb provides the API client, operations, and parameter types for Amazon QLDB.
The control plane for Amazon QLDB
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- type CancelJournalKinesisStreamInput
- type CancelJournalKinesisStreamOutput
- type Client
- func (c *Client) CancelJournalKinesisStream(ctx context.Context, params *CancelJournalKinesisStreamInput, ...) (*CancelJournalKinesisStreamOutput, error)
- func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, optFns ...func(*Options)) (*CreateLedgerOutput, error)
- func (c *Client) DeleteLedger(ctx context.Context, params *DeleteLedgerInput, optFns ...func(*Options)) (*DeleteLedgerOutput, error)
- func (c *Client) DescribeJournalKinesisStream(ctx context.Context, params *DescribeJournalKinesisStreamInput, ...) (*DescribeJournalKinesisStreamOutput, error)
- func (c *Client) DescribeJournalS3Export(ctx context.Context, params *DescribeJournalS3ExportInput, ...) (*DescribeJournalS3ExportOutput, error)
- func (c *Client) DescribeLedger(ctx context.Context, params *DescribeLedgerInput, optFns ...func(*Options)) (*DescribeLedgerOutput, error)
- func (c *Client) ExportJournalToS3(ctx context.Context, params *ExportJournalToS3Input, optFns ...func(*Options)) (*ExportJournalToS3Output, error)
- func (c *Client) GetBlock(ctx context.Context, params *GetBlockInput, optFns ...func(*Options)) (*GetBlockOutput, error)
- func (c *Client) GetDigest(ctx context.Context, params *GetDigestInput, optFns ...func(*Options)) (*GetDigestOutput, error)
- func (c *Client) GetRevision(ctx context.Context, params *GetRevisionInput, optFns ...func(*Options)) (*GetRevisionOutput, error)
- func (c *Client) ListJournalKinesisStreamsForLedger(ctx context.Context, params *ListJournalKinesisStreamsForLedgerInput, ...) (*ListJournalKinesisStreamsForLedgerOutput, error)
- func (c *Client) ListJournalS3Exports(ctx context.Context, params *ListJournalS3ExportsInput, ...) (*ListJournalS3ExportsOutput, error)
- func (c *Client) ListJournalS3ExportsForLedger(ctx context.Context, params *ListJournalS3ExportsForLedgerInput, ...) (*ListJournalS3ExportsForLedgerOutput, error)
- func (c *Client) ListLedgers(ctx context.Context, params *ListLedgersInput, optFns ...func(*Options)) (*ListLedgersOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) StreamJournalToKinesis(ctx context.Context, params *StreamJournalToKinesisInput, ...) (*StreamJournalToKinesisOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateLedger(ctx context.Context, params *UpdateLedgerInput, optFns ...func(*Options)) (*UpdateLedgerOutput, error)
- type CreateLedgerInput
- type CreateLedgerOutput
- type DeleteLedgerInput
- type DeleteLedgerOutput
- type DescribeJournalKinesisStreamInput
- type DescribeJournalKinesisStreamOutput
- type DescribeJournalS3ExportInput
- type DescribeJournalS3ExportOutput
- type DescribeLedgerInput
- type DescribeLedgerOutput
- type EndpointResolver
- type EndpointResolverFunc
- type ExportJournalToS3Input
- type ExportJournalToS3Output
- type GetBlockInput
- type GetBlockOutput
- type GetDigestInput
- type GetDigestOutput
- type GetRevisionInput
- type GetRevisionOutput
- type HTTPClient
- type HTTPSignerV4
- type ListJournalKinesisStreamsForLedgerInput
- type ListJournalKinesisStreamsForLedgerOutput
- type ListJournalS3ExportsForLedgerInput
- type ListJournalS3ExportsForLedgerOutput
- type ListJournalS3ExportsInput
- type ListJournalS3ExportsOutput
- type ListLedgersInput
- type ListLedgersOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type ResolverOptions
- type StreamJournalToKinesisInput
- type StreamJournalToKinesisOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateLedgerInput
- type UpdateLedgerOutput
Constants ¶
const ServiceAPIVersion = "2019-01-02"
const ServiceID = "QLDB"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
Types ¶
type CancelJournalKinesisStreamOutput ¶
type CancelJournalKinesisStreamOutput struct { // The unique ID that QLDB assigns to each QLDB journal stream. StreamId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon QLDB.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CancelJournalKinesisStream ¶
func (c *Client) CancelJournalKinesisStream(ctx context.Context, params *CancelJournalKinesisStreamInput, optFns ...func(*Options)) (*CancelJournalKinesisStreamOutput, error)
Ends a given Amazon QLDB journal stream. Before a stream can be canceled, its current status must be ACTIVE. You can't restart a stream after you cancel it. Canceled QLDB stream resources are subject to a 7-day retention period, so they are automatically deleted after this limit expires.
func (*Client) CreateLedger ¶
func (c *Client) CreateLedger(ctx context.Context, params *CreateLedgerInput, optFns ...func(*Options)) (*CreateLedgerOutput, error)
Creates a new ledger in your AWS account.
func (*Client) DeleteLedger ¶
func (c *Client) DeleteLedger(ctx context.Context, params *DeleteLedgerInput, optFns ...func(*Options)) (*DeleteLedgerOutput, error)
Deletes a ledger and all of its contents. This action is irreversible. If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false. The QLDB console disables deletion protection for you when you use it to delete a ledger.
func (*Client) DescribeJournalKinesisStream ¶
func (c *Client) DescribeJournalKinesisStream(ctx context.Context, params *DescribeJournalKinesisStreamInput, optFns ...func(*Options)) (*DescribeJournalKinesisStreamOutput, error)
Returns detailed information about a given Amazon QLDB journal stream. The output includes the Amazon Resource Name (ARN), stream name, current status, creation time, and the parameters of your original stream creation request.
func (*Client) DescribeJournalS3Export ¶
func (c *Client) DescribeJournalS3Export(ctx context.Context, params *DescribeJournalS3ExportInput, optFns ...func(*Options)) (*DescribeJournalS3ExportOutput, error)
Returns information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters. This action does not return any expired export jobs. For more information, see Export Job Expiration (https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration) in the Amazon QLDB Developer Guide. If the export job with the given ExportId doesn't exist, then throws ResourceNotFoundException. If the ledger with the given Name doesn't exist, then throws ResourceNotFoundException.
func (*Client) DescribeLedger ¶
func (c *Client) DescribeLedger(ctx context.Context, params *DescribeLedgerInput, optFns ...func(*Options)) (*DescribeLedgerOutput, error)
Returns information about a ledger, including its state and when it was created.
func (*Client) ExportJournalToS3 ¶
func (c *Client) ExportJournalToS3(ctx context.Context, params *ExportJournalToS3Input, optFns ...func(*Options)) (*ExportJournalToS3Output, error)
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. The data is written as files in Amazon Ion format. If the ledger with the given Name doesn't exist, then throws ResourceNotFoundException. If the ledger with the given Name is in CREATING status, then throws ResourcePreconditionNotMetException. You can initiate up to two concurrent journal export requests for each ledger. Beyond this limit, journal export requests throw LimitExceededException.
func (*Client) GetBlock ¶
func (c *Client) GetBlock(ctx context.Context, params *GetBlockInput, optFns ...func(*Options)) (*GetBlockOutput, error)
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for verification if DigestTipAddress is provided. For information about the data contents in a block, see Journal contents (https://docs.aws.amazon.com/qldb/latest/developerguide/journal-contents.html) in the Amazon QLDB Developer Guide. If the specified ledger doesn't exist or is in DELETING status, then throws ResourceNotFoundException. If the specified ledger is in CREATING status, then throws ResourcePreconditionNotMetException. If no block exists with the specified address, then throws InvalidParameterException.
func (*Client) GetDigest ¶
func (c *Client) GetDigest(ctx context.Context, params *GetDigestInput, optFns ...func(*Options)) (*GetDigestOutput, error)
Returns the digest of a ledger at the latest committed block in the journal. The response includes a 256-bit hash value and a block address.
func (*Client) GetRevision ¶
func (c *Client) GetRevision(ctx context.Context, params *GetRevisionInput, optFns ...func(*Options)) (*GetRevisionOutput, error)
Returns a revision data object for a specified document ID and block address. Also returns a proof of the specified revision for verification if DigestTipAddress is provided.
func (*Client) ListJournalKinesisStreamsForLedger ¶
func (c *Client) ListJournalKinesisStreamsForLedger(ctx context.Context, params *ListJournalKinesisStreamsForLedgerInput, optFns ...func(*Options)) (*ListJournalKinesisStreamsForLedgerOutput, error)
Returns an array of all Amazon QLDB journal stream descriptors for a given ledger. The output of each stream descriptor includes the same details that are returned by DescribeJournalKinesisStream. This action returns a maximum of MaxResults items. It is paginated so that you can retrieve all the items by calling ListJournalKinesisStreamsForLedger multiple times.
func (*Client) ListJournalS3Exports ¶
func (c *Client) ListJournalS3Exports(ctx context.Context, params *ListJournalS3ExportsInput, optFns ...func(*Options)) (*ListJournalS3ExportsOutput, error)
Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region. This action returns a maximum of MaxResults items, and is paginated so that you can retrieve all the items by calling ListJournalS3Exports multiple times. This action does not return any expired export jobs. For more information, see Export Job Expiration (https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration) in the Amazon QLDB Developer Guide.
func (*Client) ListJournalS3ExportsForLedger ¶
func (c *Client) ListJournalS3ExportsForLedger(ctx context.Context, params *ListJournalS3ExportsForLedgerInput, optFns ...func(*Options)) (*ListJournalS3ExportsForLedgerOutput, error)
Returns an array of journal export job descriptions for a specified ledger. This action returns a maximum of MaxResults items, and is paginated so that you can retrieve all the items by calling ListJournalS3ExportsForLedger multiple times. This action does not return any expired export jobs. For more information, see Export Job Expiration (https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration) in the Amazon QLDB Developer Guide.
func (*Client) ListLedgers ¶
func (c *Client) ListLedgers(ctx context.Context, params *ListLedgersInput, optFns ...func(*Options)) (*ListLedgersOutput, error)
Returns an array of ledger summaries that are associated with the current AWS account and Region. This action returns a maximum of 100 items and is paginated so that you can retrieve all the items by calling ListLedgers multiple times.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns all tags for a specified Amazon QLDB resource.
func (*Client) StreamJournalToKinesis ¶
func (c *Client) StreamJournalToKinesis(ctx context.Context, params *StreamJournalToKinesisInput, optFns ...func(*Options)) (*StreamJournalToKinesisOutput, error)
Creates a journal stream for a given Amazon QLDB ledger. The stream captures every document revision that is committed to the ledger's journal and delivers the data to a specified Amazon Kinesis Data Streams resource.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds one or more tags to a specified Amazon QLDB resource. A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
func (*Client) UpdateLedger ¶
func (c *Client) UpdateLedger(ctx context.Context, params *UpdateLedgerInput, optFns ...func(*Options)) (*UpdateLedgerOutput, error)
Updates properties on a ledger.
type CreateLedgerInput ¶
type CreateLedgerInput struct { // The name of the ledger that you want to create. The name must be unique among // all of your ledgers in the current AWS Region. Naming constraints for ledger // names are defined in Quotas in Amazon QLDB // (https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming) // in the Amazon QLDB Developer Guide. // // This member is required. Name *string // The permissions mode to assign to the ledger that you want to create. // // This member is required. PermissionsMode types.PermissionsMode // The flag that prevents a ledger from being deleted by any user. If not provided // on ledger creation, this feature is enabled (true) by default. If deletion // protection is enabled, you must first disable it before you can delete the // ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can // disable it by calling the UpdateLedger operation to set the flag to false. The // QLDB console disables deletion protection for you when you use it to delete a // ledger. DeletionProtection *bool // The key-value pairs to add as tags to the ledger that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. Tags map[string]*string }
type CreateLedgerOutput ¶
type CreateLedgerOutput struct { // The Amazon Resource Name (ARN) for the ledger. Arn *string // The date and time, in epoch time format, when the ledger was created. (Epoch // time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 // UTC.) CreationDateTime *time.Time // The flag that prevents a ledger from being deleted by any user. If not provided // on ledger creation, this feature is enabled (true) by default. If deletion // protection is enabled, you must first disable it before you can delete the // ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can // disable it by calling the UpdateLedger operation to set the flag to false. The // QLDB console disables deletion protection for you when you use it to delete a // ledger. DeletionProtection *bool // The name of the ledger. Name *string // The current status of the ledger. State types.LedgerState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteLedgerInput ¶
type DeleteLedgerInput struct { // The name of the ledger that you want to delete. // // This member is required. Name *string }
type DeleteLedgerOutput ¶
type DeleteLedgerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeJournalKinesisStreamOutput ¶
type DescribeJournalKinesisStreamOutput struct { // Information about the QLDB journal stream returned by a DescribeJournalS3Export // request. Stream *types.JournalKinesisStreamDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeJournalS3ExportOutput ¶
type DescribeJournalS3ExportOutput struct { // Information about the journal export job returned by a DescribeJournalS3Export // request. // // This member is required. ExportDescription *types.JournalS3ExportDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeLedgerInput ¶
type DescribeLedgerInput struct { // The name of the ledger that you want to describe. // // This member is required. Name *string }
type DescribeLedgerOutput ¶
type DescribeLedgerOutput struct { // The Amazon Resource Name (ARN) for the ledger. Arn *string // The date and time, in epoch time format, when the ledger was created. (Epoch // time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 // UTC.) CreationDateTime *time.Time // The flag that prevents a ledger from being deleted by any user. If not provided // on ledger creation, this feature is enabled (true) by default. If deletion // protection is enabled, you must first disable it before you can delete the // ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can // disable it by calling the UpdateLedger operation to set the flag to false. The // QLDB console disables deletion protection for you when you use it to delete a // ledger. DeletionProtection *bool // The name of the ledger. Name *string // The current status of the ledger. State types.LedgerState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type ExportJournalToS3Input ¶
type ExportJournalToS3Input struct { // The exclusive end date and time for the range of journal contents that you want // to export. The ExclusiveEndTime must be in ISO 8601 date and time format and in // Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z The // ExclusiveEndTime must be less than or equal to the current UTC date and time. // // This member is required. ExclusiveEndTime *time.Time // The inclusive start date and time for the range of journal contents that you // want to export. The InclusiveStartTime must be in ISO 8601 date and time format // and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z The // InclusiveStartTime must be before ExclusiveEndTime. If you provide an // InclusiveStartTime that is before the ledger's CreationDateTime, Amazon QLDB // defaults it to the ledger's CreationDateTime. // // This member is required. InclusiveStartTime *time.Time // The name of the ledger. // // This member is required. Name *string // The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for // a journal export job to do the following: // // * Write objects into your Amazon // Simple Storage Service (Amazon S3) bucket. // // * (Optional) Use your customer // master key (CMK) in AWS Key Management Service (AWS KMS) for server-side // encryption of your exported data. // // This member is required. RoleArn *string // The configuration settings of the Amazon S3 bucket destination for your export // request. // // This member is required. S3ExportConfiguration *types.S3ExportConfiguration }
type ExportJournalToS3Output ¶
type ExportJournalToS3Output struct { // The unique ID that QLDB assigns to each journal export job. To describe your // export request and check the status of the job, you can use ExportId to call // DescribeJournalS3Export. // // This member is required. ExportId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetBlockInput ¶
type GetBlockInput struct { // The location of the block that you want to request. An address is an Amazon Ion // structure that has two fields: strandId and sequenceNo. For example: // {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14} // // This member is required. BlockAddress *types.ValueHolder // The name of the ledger. // // This member is required. Name *string // The latest block location covered by the digest for which to request a proof. An // address is an Amazon Ion structure that has two fields: strandId and sequenceNo. // For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49} DigestTipAddress *types.ValueHolder }
type GetBlockOutput ¶
type GetBlockOutput struct { // The block data object in Amazon Ion format. // // This member is required. Block *types.ValueHolder // The proof object in Amazon Ion format returned by a GetBlock request. A proof // contains the list of hash values required to recalculate the specified digest // using a Merkle tree, starting with the specified block. Proof *types.ValueHolder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetDigestInput ¶
type GetDigestInput struct { // The name of the ledger. // // This member is required. Name *string }
type GetDigestOutput ¶
type GetDigestOutput struct { // The 256-bit hash value representing the digest returned by a GetDigest request. // // This member is required. Digest []byte // The latest block location covered by the digest that you requested. An address // is an Amazon Ion structure that has two fields: strandId and sequenceNo. // // This member is required. DigestTipAddress *types.ValueHolder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetRevisionInput ¶
type GetRevisionInput struct { // The block location of the document revision to be verified. An address is an // Amazon Ion structure that has two fields: strandId and sequenceNo. For example: // {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14} // // This member is required. BlockAddress *types.ValueHolder // The unique ID of the document to be verified. // // This member is required. DocumentId *string // The name of the ledger. // // This member is required. Name *string // The latest block location covered by the digest for which to request a proof. An // address is an Amazon Ion structure that has two fields: strandId and sequenceNo. // For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49} DigestTipAddress *types.ValueHolder }
type GetRevisionOutput ¶
type GetRevisionOutput struct { // The document revision data object in Amazon Ion format. // // This member is required. Revision *types.ValueHolder // The proof object in Amazon Ion format returned by a GetRevision request. A proof // contains the list of hash values that are required to recalculate the specified // digest using a Merkle tree, starting with the specified document revision. Proof *types.ValueHolder // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPSignerV4 ¶
type ListJournalKinesisStreamsForLedgerInput ¶
type ListJournalKinesisStreamsForLedgerInput struct { // The name of the ledger. // // This member is required. LedgerName *string // The maximum number of results to return in a single // ListJournalKinesisStreamsForLedger request. (The actual number of results // returned might be fewer.) MaxResults *int32 // A pagination token, indicating that you want to retrieve the next page of // results. If you received a value for NextToken in the response from a previous // ListJournalKinesisStreamsForLedger call, you should use that value as input // here. NextToken *string }
type ListJournalKinesisStreamsForLedgerOutput ¶
type ListJournalKinesisStreamsForLedgerOutput struct { // * If NextToken is empty, the last page of results has been processed and there // are no more results to be retrieved. // // * If NextToken is not empty, more // results are available. To retrieve the next page of results, use the value of // NextToken in a subsequent ListJournalKinesisStreamsForLedger call. NextToken *string // The array of QLDB journal stream descriptors that are associated with the given // ledger. Streams []*types.JournalKinesisStreamDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListJournalS3ExportsForLedgerInput ¶
type ListJournalS3ExportsForLedgerInput struct { // The name of the ledger. // // This member is required. Name *string // The maximum number of results to return in a single // ListJournalS3ExportsForLedger request. (The actual number of results returned // might be fewer.) MaxResults *int32 // A pagination token, indicating that you want to retrieve the next page of // results. If you received a value for NextToken in the response from a previous // ListJournalS3ExportsForLedger call, then you should use that value as input // here. NextToken *string }
type ListJournalS3ExportsForLedgerOutput ¶
type ListJournalS3ExportsForLedgerOutput struct { // The array of journal export job descriptions that are associated with the // specified ledger. JournalS3Exports []*types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and // there are no more results to be retrieved. // // * If NextToken is not empty, // then there are more results available. To retrieve the next page of results, use // the value of NextToken in a subsequent ListJournalS3ExportsForLedger call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListJournalS3ExportsInput ¶
type ListJournalS3ExportsInput struct { // The maximum number of results to return in a single ListJournalS3Exports // request. (The actual number of results returned might be fewer.) MaxResults *int32 // A pagination token, indicating that you want to retrieve the next page of // results. If you received a value for NextToken in the response from a previous // ListJournalS3Exports call, then you should use that value as input here. NextToken *string }
type ListJournalS3ExportsOutput ¶
type ListJournalS3ExportsOutput struct { // The array of journal export job descriptions for all ledgers that are associated // with the current AWS account and Region. JournalS3Exports []*types.JournalS3ExportDescription // * If NextToken is empty, then the last page of results has been processed and // there are no more results to be retrieved. // // * If NextToken is not empty, // then there are more results available. To retrieve the next page of results, use // the value of NextToken in a subsequent ListJournalS3Exports call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListLedgersInput ¶
type ListLedgersInput struct { // The maximum number of results to return in a single ListLedgers request. (The // actual number of results returned might be fewer.) MaxResults *int32 // A pagination token, indicating that you want to retrieve the next page of // results. If you received a value for NextToken in the response from a previous // ListLedgers call, then you should use that value as input here. NextToken *string }
type ListLedgersOutput ¶
type ListLedgersOutput struct { // The array of ledger summaries that are associated with the current AWS account // and Region. Ledgers []*types.LedgerSummary // A pagination token, indicating whether there are more results available: // // * // If NextToken is empty, then the last page of results has been processed and // there are no more results to be retrieved. // // * If NextToken is not empty, // then there are more results available. To retrieve the next page of results, use // the value of NextToken in a subsequent ListLedgers call. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) for which you want to list the tags. For example: // arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger // // This member is required. ResourceArn *string }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The tags that are currently associated with the specified Amazon QLDB resource. Tags map[string]*string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type StreamJournalToKinesisInput ¶
type StreamJournalToKinesisInput struct { // The inclusive start date and time from which to start streaming journal data. // This parameter must be in ISO 8601 date and time format and in Universal // Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z The InclusiveStartTime // cannot be in the future and must be before ExclusiveEndTime. If you provide an // InclusiveStartTime that is before the ledger's CreationDateTime, QLDB // effectively defaults it to the ledger's CreationDateTime. // // This member is required. InclusiveStartTime *time.Time // The configuration settings of the Kinesis Data Streams destination for your // stream request. // // This member is required. KinesisConfiguration *types.KinesisConfiguration // The name of the ledger. // // This member is required. LedgerName *string // The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for // a journal stream to write data records to a Kinesis Data Streams resource. // // This member is required. RoleArn *string // The name that you want to assign to the QLDB journal stream. User-defined names // can help identify and indicate the purpose of a stream. Your stream name must be // unique among other active streams for a given ledger. Stream names have the same // naming constraints as ledger names, as defined in Quotas in Amazon QLDB // (https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming) // in the Amazon QLDB Developer Guide. // // This member is required. StreamName *string // The exclusive date and time that specifies when the stream ends. If you don't // define this parameter, the stream runs indefinitely until you cancel it. The // ExclusiveEndTime must be in ISO 8601 date and time format and in Universal // Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z ExclusiveEndTime *time.Time // The key-value pairs to add as tags to the stream that you want to create. Tag // keys are case sensitive. Tag values are case sensitive and can be null. Tags map[string]*string }
type StreamJournalToKinesisOutput ¶
type StreamJournalToKinesisOutput struct { // The unique ID that QLDB assigns to each QLDB journal stream. StreamId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) to which you want to add the tags. For example: // arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger // // This member is required. ResourceArn *string // The key-value pairs to add as tags to the specified QLDB resource. Tag keys are // case sensitive. If you specify a key that already exists for the resource, your // request fails and returns an error. Tag values are case sensitive and can be // null. // // This member is required. Tags map[string]*string }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) from which you want to remove the tags. For // example: arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger // // This member is required. ResourceArn *string // The list of tag keys that you want to remove. // // This member is required. TagKeys []*string }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateLedgerInput ¶
type UpdateLedgerInput struct { // The name of the ledger. // // This member is required. Name *string // The flag that prevents a ledger from being deleted by any user. If not provided // on ledger creation, this feature is enabled (true) by default. If deletion // protection is enabled, you must first disable it before you can delete the // ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can // disable it by calling the UpdateLedger operation to set the flag to false. The // QLDB console disables deletion protection for you when you use it to delete a // ledger. DeletionProtection *bool }
type UpdateLedgerOutput ¶
type UpdateLedgerOutput struct { // The Amazon Resource Name (ARN) for the ledger. Arn *string // The date and time, in epoch time format, when the ledger was created. (Epoch // time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 // UTC.) CreationDateTime *time.Time // The flag that prevents a ledger from being deleted by any user. If not provided // on ledger creation, this feature is enabled (true) by default. If deletion // protection is enabled, you must first disable it before you can delete the // ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can // disable it by calling the UpdateLedger operation to set the flag to false. The // QLDB console disables deletion protection for you when you use it to delete a // ledger. DeletionProtection *bool // The name of the ledger. Name *string // The current status of the ledger. State types.LedgerState // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
- api_client.go
- api_op_CancelJournalKinesisStream.go
- api_op_CreateLedger.go
- api_op_DeleteLedger.go
- api_op_DescribeJournalKinesisStream.go
- api_op_DescribeJournalS3Export.go
- api_op_DescribeLedger.go
- api_op_ExportJournalToS3.go
- api_op_GetBlock.go
- api_op_GetDigest.go
- api_op_GetRevision.go
- api_op_ListJournalKinesisStreamsForLedger.go
- api_op_ListJournalS3Exports.go
- api_op_ListJournalS3ExportsForLedger.go
- api_op_ListLedgers.go
- api_op_ListTagsForResource.go
- api_op_StreamJournalToKinesis.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateLedger.go
- deserializers.go
- doc.go
- endpoints.go
- serializers.go
- validators.go