You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are few AWS resources in which the output of GET and LIST API calls differ (The type of struct differs for them).
Can we have a transform through which we can mention 2 paths to get the value ("Path1", "Path2")
If the value is not found in Path1 the transform should try to retrieve it from Path2
{
Name: "backup_status",
Description: "Current status of the backup. Backup can be in one of the following states: CREATING, ACTIVE, DELETED",
Type: proto.ColumnType_STRING,
Transform: transform.GetValue("BackupStatus", "BackupDetails.BackupStatus,"),
}
type BackupDescription struct {
_ struct{} `type:"structure"`
// Contains the details of the backup created for the table.
BackupDetails *BackupDetails `type:"structure"`
// Contains the details of the table when the backup was created.
SourceTableDetails *SourceTableDetails `type:"structure"`
// Contains the details of the features enabled on the table when the backup
// was created. For example, LSIs, GSIs, streams, TTL.
SourceTableFeatureDetails *SourceTableFeatureDetails `type:"structure"`
}
// Contains the details of the backup created for the table.
type BackupDetails struct {
_ struct{} `type:"structure"`
BackupArn *string `min:"37" type:"string" required:"true"`
BackupCreationDateTime *time.Time `type:"timestamp" required:"true"`
BackupExpiryDateTime *time.Time `type:"timestamp"`
BackupName *string `min:"3" type:"string" required:"true"`
BackupSizeBytes *int64 `type:"long"`
BackupStatus *string `type:"string" required:"true" enum:"BackupStatus"`
BackupType *string `type:"string" required:"true" enum:"BackupType"`
}
// Contains the details of the table when the backup was created.
type SourceTableDetails struct {
_ struct{} `type:"structure"`
BillingMode *string `type:"string" enum:"BillingMode"`
ItemCount *int64 `type:"long"`
KeySchema []*KeySchemaElement `min:"1" type:"list" required:"true"`
ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"`
TableArn *string `type:"string"`
TableCreationDateTime *time.Time `type:"timestamp" required:"true"`
TableId *string `type:"string" required:"true"`
TableName *string `min:"3" type:"string" required:"true"`
TableSizeBytes *int64 `type:"long"`
}
The text was updated successfully, but these errors were encountered:
There are few AWS resources in which the output of
GET
andLIST
API calls differ (The type of struct differs for them).Can we have a transform through which we can mention 2 paths to get the value ("Path1", "Path2")
If the value is not found in
Path1
the transform should try to retrieve it fromPath2
For example in aws_dynamodb_backup table
LIST CALL STRUCT
BackupSummary
GET CALL STRUCT
BackupDescription
The text was updated successfully, but these errors were encountered: