1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package sagemaker
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/sagemaker/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"time"
)
// Use this operation to describe a FeatureGroup. The response includes information
// on the creation time, FeatureGroup name, the unique identifier for each
// FeatureGroup, and more.
func (c *Client) DescribeFeatureGroup(ctx context.Context, params *DescribeFeatureGroupInput, optFns ...func(*Options)) (*DescribeFeatureGroupOutput, error) {
if params == nil {
params = &DescribeFeatureGroupInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeFeatureGroup", params, optFns, c.addOperationDescribeFeatureGroupMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeFeatureGroupOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeFeatureGroupInput struct {
// The name of the FeatureGroup you want described.
//
// This member is required.
FeatureGroupName *string
// A token to resume pagination of the list of Features (FeatureDefinitions). 2,500
// Features are returned by default.
NextToken *string
noSmithyDocumentSerde
}
type DescribeFeatureGroupOutput struct {
// A timestamp indicating when SageMaker created the FeatureGroup.
//
// This member is required.
CreationTime *time.Time
// The name of the feature that stores the EventTime of a Record in a FeatureGroup.
// An EventTime is a point in time when a new event occurs that corresponds to the
// creation or update of a Record in a FeatureGroup. All Records in the
// FeatureGroup have a corresponding EventTime.
//
// This member is required.
EventTimeFeatureName *string
// A list of the Features in the FeatureGroup. Each feature is defined by a
// FeatureName and FeatureType.
//
// This member is required.
FeatureDefinitions []types.FeatureDefinition
// The Amazon Resource Name (ARN) of the FeatureGroup.
//
// This member is required.
FeatureGroupArn *string
// he name of the FeatureGroup.
//
// This member is required.
FeatureGroupName *string
// A token to resume pagination of the list of Features (FeatureDefinitions).
//
// This member is required.
NextToken *string
// The name of the Feature used for RecordIdentifier, whose value uniquely
// identifies a record stored in the feature store.
//
// This member is required.
RecordIdentifierFeatureName *string
// A free form description of the feature group.
Description *string
// The reason that the FeatureGroup failed to be replicated in the OfflineStore.
// This is failure can occur because:
//
// * The FeatureGroup could not be created in
// the OfflineStore.
//
// * The FeatureGroup could not be deleted from the
// OfflineStore.
FailureReason *string
// The status of the feature group.
FeatureGroupStatus types.FeatureGroupStatus
// A timestamp indicating when the feature group was last updated.
LastModifiedTime *time.Time
// A value indicating whether the update made to the feature group was successful.
LastUpdateStatus *types.LastUpdateStatus
// The configuration of the OfflineStore, inducing the S3 location of the
// OfflineStore, Amazon Web Services Glue or Amazon Web Services Hive data
// catalogue configurations, and the security configuration.
OfflineStoreConfig *types.OfflineStoreConfig
// The status of the OfflineStore. Notifies you if replicating data into the
// OfflineStore has failed. Returns either: Active or Blocked
OfflineStoreStatus *types.OfflineStoreStatus
// The configuration for the OnlineStore.
OnlineStoreConfig *types.OnlineStoreConfig
// The size of the OnlineStore in bytes.
OnlineStoreTotalSizeBytes *int64
// The Amazon Resource Name (ARN) of the IAM execution role used to persist data
// into the OfflineStore if an OfflineStoreConfig is provided.
RoleArn *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeFeatureGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeFeatureGroup{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeFeatureGroup{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeFeatureGroupValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFeatureGroup(options.Region), middleware.Before); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDescribeFeatureGroup(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "sagemaker",
OperationName: "DescribeFeatureGroup",
}
}
|