Documentation
¶
Overview ¶
AWS Generative AI CDK Constructs is a library for well-architected generative AI patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseClass_IsConstruct ¶
func BaseClass_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`. Experimental.
func NewBaseClass_Override ¶
func NewBaseClass_Override(b BaseClass, scope constructs.Construct, id *string)
Experimental.
Types ¶
type BaseClass ¶
type BaseClass interface {
constructs.Construct
// construct usage metric , added in template description.
// Experimental.
ConstructUsageMetric() *string
// enable disable xray tracing.
// Default: true.
//
// Experimental.
Enablexray() *bool
// Experimental.
SetEnablexray(val *bool)
// Default log config for all constructs.
// Experimental.
FieldLogLevel() awsappsync.FieldLogLevel
// Experimental.
SetFieldLogLevel(val awsappsync.FieldLogLevel)
// enable disable lambda tracing.
// Default: Active.
//
// Experimental.
LambdaTracing() awslambda.Tracing
// Experimental.
SetLambdaTracing(val awslambda.Tracing)
// The tree node.
// Experimental.
Node() constructs.Node
// Default log retention config for all constructs.
// Experimental.
Retention() awslogs.RetentionDays
// Experimental.
SetRetention(val awslogs.RetentionDays)
// Value will be appended to resources name.
// Default: _dev.
//
// Experimental.
Stage() *string
// Experimental.
SetStage(val *string)
// Experimental.
AddObservabilityToConstruct(props *BaseClassProps)
// Returns a string representation of this construct.
// Experimental.
ToString() *string
// update template description with construct usage metric and add AWS_SDK_UA_APP_ID to user agent on aws sdk.
// Experimental.
UpdateConstructUsageMetricCode(props *BaseClassProps, scope constructs.Construct, lambdaFunctions *[]awslambda.DockerImageFunction)
// Experimental.
UpdateEnvSuffix(props *BaseClassProps)
}
Experimental.
func NewBaseClass ¶
func NewBaseClass(scope constructs.Construct, id *string) BaseClass
Experimental.
type BaseClassProps ¶
type BaseClassProps struct {
// construct id.
// Experimental.
ConstructId *string `field:"required" json:"constructId" yaml:"constructId"`
// name of the construct.
// Experimental.
ConstructName ConstructName `field:"required" json:"constructName" yaml:"constructName"`
// Enable observability.
//
// Warning: associated cost with the services
// used. Best practice to enable by default.
// Default: true.
//
// Experimental.
Observability *bool `field:"optional" json:"observability" yaml:"observability"`
// Value will be appended to resources name.
// Default: _dev.
//
// Experimental.
Stage *string `field:"optional" json:"stage" yaml:"stage"`
}
Experimental.
type ConstructName ¶
type ConstructName string
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://www.apache.org/licenses/LICENSE-2.0
or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License. Experimental.
const ( // Experimental. ConstructName_AWSMODELDEPLOYMENTSAGEMAKER ConstructName = "AWSMODELDEPLOYMENTSAGEMAKER" // Experimental. ConstructName_CUSTOMSAGEMAKERENDPOINT ConstructName = "CUSTOMSAGEMAKERENDPOINT" // Experimental. ConstructName_HUGGINGFACESAGEMAKERENDPOINT ConstructName = "HUGGINGFACESAGEMAKERENDPOINT" // Experimental. ConstructName_JUMPSTARTSAGEMAKERENDPOINT ConstructName = "JUMPSTARTSAGEMAKERENDPOINT" )
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
|
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves. |