ModelAccessConfigProperty Struct
The access configuration file to control access to the ML model.
You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig .
- If you are a Jumpstart user, see the End-user license agreements section for more details on accepting the EULA.
- If you are an AutoML user, see the Optional Parameters section of Create an AutoML job to fine-tune text generation models using the API for details on How to set the EULA acceptance when fine-tuning a model using the AutoML API .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const modelAccessConfigProperty: sagemaker.CfnModelPackage.ModelAccessConfigProperty = {
acceptEula: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
model_access_config_property = sagemaker.CfnModelPackage.ModelAccessConfigProperty(
accept_eula=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
ModelAccessConfigProperty modelAccessConfigProperty = ModelAccessConfigProperty.builder()
.acceptEula(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var modelAccessConfigProperty = new ModelAccessConfigProperty {
AcceptEula = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
modelAccessConfigProperty := &ModelAccessConfigProperty{
AcceptEula: jsii.Boolean(false),
}
Properties
acceptEulaboolean | IResolvableaccept_eulatyping.Union[bool, IResolvable]acceptEulaBooleanAcceptEulaboolAcceptEulainterface{} required #Specifies agreement to the model end-user license agreement (EULA).
notes
The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.