bedrock

package
v1.53.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Overview

Package bedrock provides the client and types for making API requests to Amazon Bedrock.

Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.

See https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20 for more information on this service.

See bedrock package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/bedrock/

Using the Client

To contact Amazon Bedrock with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Bedrock client Bedrock for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/bedrock/#New

Index

Constants

View Source
const (
	// CommitmentDurationOneMonth is a CommitmentDuration enum value
	CommitmentDurationOneMonth = "OneMonth"

	// CommitmentDurationSixMonths is a CommitmentDuration enum value
	CommitmentDurationSixMonths = "SixMonths"
)
View Source
const (
	// CustomizationTypeFineTuning is a CustomizationType enum value
	CustomizationTypeFineTuning = "FINE_TUNING"

	// CustomizationTypeContinuedPreTraining is a CustomizationType enum value
	CustomizationTypeContinuedPreTraining = "CONTINUED_PRE_TRAINING"
)
View Source
const (
	// EvaluationJobStatusInProgress is a EvaluationJobStatus enum value
	EvaluationJobStatusInProgress = "InProgress"

	// EvaluationJobStatusCompleted is a EvaluationJobStatus enum value
	EvaluationJobStatusCompleted = "Completed"

	// EvaluationJobStatusFailed is a EvaluationJobStatus enum value
	EvaluationJobStatusFailed = "Failed"

	// EvaluationJobStatusStopping is a EvaluationJobStatus enum value
	EvaluationJobStatusStopping = "Stopping"

	// EvaluationJobStatusStopped is a EvaluationJobStatus enum value
	EvaluationJobStatusStopped = "Stopped"
)
View Source
const (
	// EvaluationJobTypeHuman is a EvaluationJobType enum value
	EvaluationJobTypeHuman = "Human"

	// EvaluationJobTypeAutomated is a EvaluationJobType enum value
	EvaluationJobTypeAutomated = "Automated"
)
View Source
const (
	// EvaluationTaskTypeSummarization is a EvaluationTaskType enum value
	EvaluationTaskTypeSummarization = "Summarization"

	// EvaluationTaskTypeClassification is a EvaluationTaskType enum value
	EvaluationTaskTypeClassification = "Classification"

	// EvaluationTaskTypeQuestionAndAnswer is a EvaluationTaskType enum value
	EvaluationTaskTypeQuestionAndAnswer = "QuestionAndAnswer"

	// EvaluationTaskTypeGeneration is a EvaluationTaskType enum value
	EvaluationTaskTypeGeneration = "Generation"

	// EvaluationTaskTypeCustom is a EvaluationTaskType enum value
	EvaluationTaskTypeCustom = "Custom"
)
View Source
const (
	// FineTuningJobStatusInProgress is a FineTuningJobStatus enum value
	FineTuningJobStatusInProgress = "InProgress"

	// FineTuningJobStatusCompleted is a FineTuningJobStatus enum value
	FineTuningJobStatusCompleted = "Completed"

	// FineTuningJobStatusFailed is a FineTuningJobStatus enum value
	FineTuningJobStatusFailed = "Failed"

	// FineTuningJobStatusStopping is a FineTuningJobStatus enum value
	FineTuningJobStatusStopping = "Stopping"

	// FineTuningJobStatusStopped is a FineTuningJobStatus enum value
	FineTuningJobStatusStopped = "Stopped"
)
View Source
const (
	// FoundationModelLifecycleStatusActive is a FoundationModelLifecycleStatus enum value
	FoundationModelLifecycleStatusActive = "ACTIVE"

	// FoundationModelLifecycleStatusLegacy is a FoundationModelLifecycleStatus enum value
	FoundationModelLifecycleStatusLegacy = "LEGACY"
)
View Source
const (
	// GuardrailContentFilterTypeSexual is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypeSexual = "SEXUAL"

	// GuardrailContentFilterTypeViolence is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypeViolence = "VIOLENCE"

	// GuardrailContentFilterTypeHate is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypeHate = "HATE"

	// GuardrailContentFilterTypeInsults is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypeInsults = "INSULTS"

	// GuardrailContentFilterTypeMisconduct is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypeMisconduct = "MISCONDUCT"

	// GuardrailContentFilterTypePromptAttack is a GuardrailContentFilterType enum value
	GuardrailContentFilterTypePromptAttack = "PROMPT_ATTACK"
)
View Source
const (
	// GuardrailFilterStrengthNone is a GuardrailFilterStrength enum value
	GuardrailFilterStrengthNone = "NONE"

	// GuardrailFilterStrengthLow is a GuardrailFilterStrength enum value
	GuardrailFilterStrengthLow = "LOW"

	// GuardrailFilterStrengthMedium is a GuardrailFilterStrength enum value
	GuardrailFilterStrengthMedium = "MEDIUM"

	// GuardrailFilterStrengthHigh is a GuardrailFilterStrength enum value
	GuardrailFilterStrengthHigh = "HIGH"
)
View Source
const (
	// GuardrailPiiEntityTypeAddress is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeAddress = "ADDRESS"

	// GuardrailPiiEntityTypeAge is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeAge = "AGE"

	// GuardrailPiiEntityTypeAwsAccessKey is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeAwsAccessKey = "AWS_ACCESS_KEY"

	// GuardrailPiiEntityTypeAwsSecretKey is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeAwsSecretKey = "AWS_SECRET_KEY"

	// GuardrailPiiEntityTypeCaHealthNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeCaHealthNumber = "CA_HEALTH_NUMBER"

	// GuardrailPiiEntityTypeCaSocialInsuranceNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeCaSocialInsuranceNumber = "CA_SOCIAL_INSURANCE_NUMBER"

	// GuardrailPiiEntityTypeCreditDebitCardCvv is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeCreditDebitCardCvv = "CREDIT_DEBIT_CARD_CVV"

	// GuardrailPiiEntityTypeCreditDebitCardExpiry is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeCreditDebitCardExpiry = "CREDIT_DEBIT_CARD_EXPIRY"

	// GuardrailPiiEntityTypeCreditDebitCardNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeCreditDebitCardNumber = "CREDIT_DEBIT_CARD_NUMBER"

	// GuardrailPiiEntityTypeDriverId is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeDriverId = "DRIVER_ID"

	// GuardrailPiiEntityTypeEmail is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeEmail = "EMAIL"

	// GuardrailPiiEntityTypeInternationalBankAccountNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeInternationalBankAccountNumber = "INTERNATIONAL_BANK_ACCOUNT_NUMBER"

	// GuardrailPiiEntityTypeIpAddress is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeIpAddress = "IP_ADDRESS"

	// GuardrailPiiEntityTypeLicensePlate is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeLicensePlate = "LICENSE_PLATE"

	// GuardrailPiiEntityTypeMacAddress is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeMacAddress = "MAC_ADDRESS"

	// GuardrailPiiEntityTypeName is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeName = "NAME"

	// GuardrailPiiEntityTypePassword is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypePassword = "PASSWORD"

	// GuardrailPiiEntityTypePhone is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypePhone = "PHONE"

	// GuardrailPiiEntityTypePin is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypePin = "PIN"

	// GuardrailPiiEntityTypeSwiftCode is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeSwiftCode = "SWIFT_CODE"

	// GuardrailPiiEntityTypeUkNationalHealthServiceNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUkNationalHealthServiceNumber = "UK_NATIONAL_HEALTH_SERVICE_NUMBER"

	// GuardrailPiiEntityTypeUkNationalInsuranceNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUkNationalInsuranceNumber = "UK_NATIONAL_INSURANCE_NUMBER"

	// GuardrailPiiEntityTypeUkUniqueTaxpayerReferenceNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUkUniqueTaxpayerReferenceNumber = "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"

	// GuardrailPiiEntityTypeUrl is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUrl = "URL"

	// GuardrailPiiEntityTypeUsername is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsername = "USERNAME"

	// GuardrailPiiEntityTypeUsBankAccountNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsBankAccountNumber = "US_BANK_ACCOUNT_NUMBER"

	// GuardrailPiiEntityTypeUsBankRoutingNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsBankRoutingNumber = "US_BANK_ROUTING_NUMBER"

	// GuardrailPiiEntityTypeUsIndividualTaxIdentificationNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsIndividualTaxIdentificationNumber = "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"

	// GuardrailPiiEntityTypeUsPassportNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsPassportNumber = "US_PASSPORT_NUMBER"

	// GuardrailPiiEntityTypeUsSocialSecurityNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeUsSocialSecurityNumber = "US_SOCIAL_SECURITY_NUMBER"

	// GuardrailPiiEntityTypeVehicleIdentificationNumber is a GuardrailPiiEntityType enum value
	GuardrailPiiEntityTypeVehicleIdentificationNumber = "VEHICLE_IDENTIFICATION_NUMBER"
)
View Source
const (
	// GuardrailSensitiveInformationActionBlock is a GuardrailSensitiveInformationAction enum value
	GuardrailSensitiveInformationActionBlock = "BLOCK"

	// GuardrailSensitiveInformationActionAnonymize is a GuardrailSensitiveInformationAction enum value
	GuardrailSensitiveInformationActionAnonymize = "ANONYMIZE"
)
View Source
const (
	// GuardrailStatusCreating is a GuardrailStatus enum value
	GuardrailStatusCreating = "CREATING"

	// GuardrailStatusUpdating is a GuardrailStatus enum value
	GuardrailStatusUpdating = "UPDATING"

	// GuardrailStatusVersioning is a GuardrailStatus enum value
	GuardrailStatusVersioning = "VERSIONING"

	// GuardrailStatusReady is a GuardrailStatus enum value
	GuardrailStatusReady = "READY"

	// GuardrailStatusFailed is a GuardrailStatus enum value
	GuardrailStatusFailed = "FAILED"

	// GuardrailStatusDeleting is a GuardrailStatus enum value
	GuardrailStatusDeleting = "DELETING"
)
View Source
const (
	// InferenceTypeOnDemand is a InferenceType enum value
	InferenceTypeOnDemand = "ON_DEMAND"

	// InferenceTypeProvisioned is a InferenceType enum value
	InferenceTypeProvisioned = "PROVISIONED"
)
View Source
const (
	// ModelCustomizationFineTuning is a ModelCustomization enum value
	ModelCustomizationFineTuning = "FINE_TUNING"

	// ModelCustomizationContinuedPreTraining is a ModelCustomization enum value
	ModelCustomizationContinuedPreTraining = "CONTINUED_PRE_TRAINING"
)
View Source
const (
	// ModelCustomizationJobStatusInProgress is a ModelCustomizationJobStatus enum value
	ModelCustomizationJobStatusInProgress = "InProgress"

	// ModelCustomizationJobStatusCompleted is a ModelCustomizationJobStatus enum value
	ModelCustomizationJobStatusCompleted = "Completed"

	// ModelCustomizationJobStatusFailed is a ModelCustomizationJobStatus enum value
	ModelCustomizationJobStatusFailed = "Failed"

	// ModelCustomizationJobStatusStopping is a ModelCustomizationJobStatus enum value
	ModelCustomizationJobStatusStopping = "Stopping"

	// ModelCustomizationJobStatusStopped is a ModelCustomizationJobStatus enum value
	ModelCustomizationJobStatusStopped = "Stopped"
)
View Source
const (
	// ModelModalityText is a ModelModality enum value
	ModelModalityText = "TEXT"

	// ModelModalityImage is a ModelModality enum value
	ModelModalityImage = "IMAGE"

	// ModelModalityEmbedding is a ModelModality enum value
	ModelModalityEmbedding = "EMBEDDING"
)
View Source
const (
	// ProvisionedModelStatusCreating is a ProvisionedModelStatus enum value
	ProvisionedModelStatusCreating = "Creating"

	// ProvisionedModelStatusInService is a ProvisionedModelStatus enum value
	ProvisionedModelStatusInService = "InService"

	// ProvisionedModelStatusUpdating is a ProvisionedModelStatus enum value
	ProvisionedModelStatusUpdating = "Updating"

	// ProvisionedModelStatusFailed is a ProvisionedModelStatus enum value
	ProvisionedModelStatusFailed = "Failed"
)
View Source
const (
	// SortOrderAscending is a SortOrder enum value
	SortOrderAscending = "Ascending"

	// SortOrderDescending is a SortOrder enum value
	SortOrderDescending = "Descending"
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// The request is denied because of missing access permissions.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// Error occurred because of a conflict while performing an operation.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// An internal server error occurred. Retry your request.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified resource Amazon Resource Name (ARN) was not found. Check the
	// Amazon Resource Name (ARN) and try your request again.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// The number of requests exceeds the service quota. Resubmit your request later.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The number of requests exceeds the limit. Resubmit your request later.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeTooManyTagsException for service response error code
	// "TooManyTagsException".
	//
	// The request contains more tags than can be associated with a resource (50
	// tags per resource). The maximum number of tags includes both existing tags
	// and those included in your current request.
	ErrCodeTooManyTagsException = "TooManyTagsException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// Input validation failed. Check your request parameters and retry the request.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "Bedrock" // Name of service.
	EndpointsID = "bedrock" // ID to lookup a service endpoint with.
	ServiceID   = "Bedrock" // ServiceID is a unique identifier of a specific service.
)

Service information constants

View Source
const (
	// GuardrailManagedWordsTypeProfanity is a GuardrailManagedWordsType enum value
	GuardrailManagedWordsTypeProfanity = "PROFANITY"
)
View Source
const (
	// GuardrailTopicTypeDeny is a GuardrailTopicType enum value
	GuardrailTopicTypeDeny = "DENY"
)
View Source
const (
	// SortByProvisionedModelsCreationTime is a SortByProvisionedModels enum value
	SortByProvisionedModelsCreationTime = "CreationTime"
)
View Source
const (
	// SortJobsByCreationTime is a SortJobsBy enum value
	SortJobsByCreationTime = "CreationTime"
)
View Source
const (
	// SortModelsByCreationTime is a SortModelsBy enum value
	SortModelsByCreationTime = "CreationTime"
)

Variables

This section is empty.

Functions

func CommitmentDuration_Values added in v1.45.20

func CommitmentDuration_Values() []string

CommitmentDuration_Values returns all elements of the CommitmentDuration enum

func CustomizationType_Values added in v1.48.7

func CustomizationType_Values() []string

CustomizationType_Values returns all elements of the CustomizationType enum

func EvaluationJobStatus_Values added in v1.51.27

func EvaluationJobStatus_Values() []string

EvaluationJobStatus_Values returns all elements of the EvaluationJobStatus enum

func EvaluationJobType_Values added in v1.51.27

func EvaluationJobType_Values() []string

EvaluationJobType_Values returns all elements of the EvaluationJobType enum

func EvaluationTaskType_Values added in v1.51.27

func EvaluationTaskType_Values() []string

EvaluationTaskType_Values returns all elements of the EvaluationTaskType enum

func FineTuningJobStatus_Values

func FineTuningJobStatus_Values() []string

FineTuningJobStatus_Values returns all elements of the FineTuningJobStatus enum

func FoundationModelLifecycleStatus_Values added in v1.48.7

func FoundationModelLifecycleStatus_Values() []string

FoundationModelLifecycleStatus_Values returns all elements of the FoundationModelLifecycleStatus enum

func GuardrailContentFilterType_Values added in v1.51.27

func GuardrailContentFilterType_Values() []string

GuardrailContentFilterType_Values returns all elements of the GuardrailContentFilterType enum

func GuardrailFilterStrength_Values added in v1.51.27

func GuardrailFilterStrength_Values() []string

GuardrailFilterStrength_Values returns all elements of the GuardrailFilterStrength enum

func GuardrailManagedWordsType_Values added in v1.51.27

func GuardrailManagedWordsType_Values() []string

GuardrailManagedWordsType_Values returns all elements of the GuardrailManagedWordsType enum

func GuardrailPiiEntityType_Values added in v1.51.27

func GuardrailPiiEntityType_Values() []string

GuardrailPiiEntityType_Values returns all elements of the GuardrailPiiEntityType enum

func GuardrailSensitiveInformationAction_Values added in v1.51.27

func GuardrailSensitiveInformationAction_Values() []string

GuardrailSensitiveInformationAction_Values returns all elements of the GuardrailSensitiveInformationAction enum

func GuardrailStatus_Values added in v1.51.27

func GuardrailStatus_Values() []string

GuardrailStatus_Values returns all elements of the GuardrailStatus enum

func GuardrailTopicType_Values added in v1.51.27

func GuardrailTopicType_Values() []string

GuardrailTopicType_Values returns all elements of the GuardrailTopicType enum

func InferenceType_Values

func InferenceType_Values() []string

InferenceType_Values returns all elements of the InferenceType enum

func ModelCustomizationJobStatus_Values

func ModelCustomizationJobStatus_Values() []string

ModelCustomizationJobStatus_Values returns all elements of the ModelCustomizationJobStatus enum

func ModelCustomization_Values

func ModelCustomization_Values() []string

ModelCustomization_Values returns all elements of the ModelCustomization enum

func ModelModality_Values

func ModelModality_Values() []string

ModelModality_Values returns all elements of the ModelModality enum

func ProvisionedModelStatus_Values added in v1.45.20

func ProvisionedModelStatus_Values() []string

ProvisionedModelStatus_Values returns all elements of the ProvisionedModelStatus enum

func SortByProvisionedModels_Values added in v1.45.20

func SortByProvisionedModels_Values() []string

SortByProvisionedModels_Values returns all elements of the SortByProvisionedModels enum

func SortJobsBy_Values

func SortJobsBy_Values() []string

SortJobsBy_Values returns all elements of the SortJobsBy enum

func SortModelsBy_Values

func SortModelsBy_Values() []string

SortModelsBy_Values returns all elements of the SortModelsBy enum

func SortOrder_Values

func SortOrder_Values() []string

SortOrder_Values returns all elements of the SortOrder enum

Types

type AccessDeniedException

type AccessDeniedException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The request is denied because of missing access permissions.

func (*AccessDeniedException) Code

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString

func (s AccessDeniedException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccessDeniedException) Message

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String

func (s AccessDeniedException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AutomatedEvaluationConfig added in v1.51.27

type AutomatedEvaluationConfig struct {

	// Specifies the required elements for an automatic model evaluation job.
	//
	// DatasetMetricConfigs is a required field
	DatasetMetricConfigs []*EvaluationDatasetMetricConfig `locationName:"datasetMetricConfigs" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Use to specify a automatic model evaluation job. The EvaluationDatasetMetricConfig object is used to specify the prompt datasets, task type, and metric names.

func (AutomatedEvaluationConfig) GoString added in v1.51.27

func (s AutomatedEvaluationConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AutomatedEvaluationConfig) SetDatasetMetricConfigs added in v1.51.27

SetDatasetMetricConfigs sets the DatasetMetricConfigs field's value.

func (AutomatedEvaluationConfig) String added in v1.51.27

func (s AutomatedEvaluationConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AutomatedEvaluationConfig) Validate added in v1.51.27

func (s *AutomatedEvaluationConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Bedrock

type Bedrock struct {
	*client.Client
}

Bedrock provides the API operation methods for making requests to Amazon Bedrock. See this package's package overview docs for details on the service.

Bedrock methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Bedrock

New creates a new instance of the Bedrock client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a Bedrock client from just a session.
svc := bedrock.New(mySession)

// Create a Bedrock client with additional configuration
svc := bedrock.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*Bedrock) CreateEvaluationJob added in v1.51.27

func (c *Bedrock) CreateEvaluationJob(input *CreateEvaluationJobInput) (*CreateEvaluationJobOutput, error)

CreateEvaluationJob API operation for Amazon Bedrock.

API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, Model evaluations (https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation CreateEvaluationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateEvaluationJob

func (*Bedrock) CreateEvaluationJobRequest added in v1.51.27

func (c *Bedrock) CreateEvaluationJobRequest(input *CreateEvaluationJobInput) (req *request.Request, output *CreateEvaluationJobOutput)

CreateEvaluationJobRequest generates a "aws/request.Request" representing the client's request for the CreateEvaluationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEvaluationJob for more information on using the CreateEvaluationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEvaluationJobRequest method.
req, resp := client.CreateEvaluationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateEvaluationJob

func (*Bedrock) CreateEvaluationJobWithContext added in v1.51.27

func (c *Bedrock) CreateEvaluationJobWithContext(ctx aws.Context, input *CreateEvaluationJobInput, opts ...request.Option) (*CreateEvaluationJobOutput, error)

CreateEvaluationJobWithContext is the same as CreateEvaluationJob with the addition of the ability to pass a context and additional request options.

See CreateEvaluationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) CreateGuardrail added in v1.51.27

func (c *Bedrock) CreateGuardrail(input *CreateGuardrailInput) (*CreateGuardrailOutput, error)

CreateGuardrail API operation for Amazon Bedrock.

Creates a guardrail to block topics and to filter out harmful content.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation CreateGuardrail for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateGuardrail

func (*Bedrock) CreateGuardrailRequest added in v1.51.27

func (c *Bedrock) CreateGuardrailRequest(input *CreateGuardrailInput) (req *request.Request, output *CreateGuardrailOutput)

CreateGuardrailRequest generates a "aws/request.Request" representing the client's request for the CreateGuardrail operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateGuardrail for more information on using the CreateGuardrail API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateGuardrailRequest method.
req, resp := client.CreateGuardrailRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateGuardrail

func (*Bedrock) CreateGuardrailVersion added in v1.51.27

func (c *Bedrock) CreateGuardrailVersion(input *CreateGuardrailVersionInput) (*CreateGuardrailVersionOutput, error)

CreateGuardrailVersion API operation for Amazon Bedrock.

Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation CreateGuardrailVersion for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateGuardrailVersion

func (*Bedrock) CreateGuardrailVersionRequest added in v1.51.27

func (c *Bedrock) CreateGuardrailVersionRequest(input *CreateGuardrailVersionInput) (req *request.Request, output *CreateGuardrailVersionOutput)

CreateGuardrailVersionRequest generates a "aws/request.Request" representing the client's request for the CreateGuardrailVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateGuardrailVersion for more information on using the CreateGuardrailVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateGuardrailVersionRequest method.
req, resp := client.CreateGuardrailVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateGuardrailVersion

func (*Bedrock) CreateGuardrailVersionWithContext added in v1.51.27

func (c *Bedrock) CreateGuardrailVersionWithContext(ctx aws.Context, input *CreateGuardrailVersionInput, opts ...request.Option) (*CreateGuardrailVersionOutput, error)

CreateGuardrailVersionWithContext is the same as CreateGuardrailVersion with the addition of the ability to pass a context and additional request options.

See CreateGuardrailVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) CreateGuardrailWithContext added in v1.51.27

func (c *Bedrock) CreateGuardrailWithContext(ctx aws.Context, input *CreateGuardrailInput, opts ...request.Option) (*CreateGuardrailOutput, error)

CreateGuardrailWithContext is the same as CreateGuardrail with the addition of the ability to pass a context and additional request options.

See CreateGuardrail for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) CreateModelCustomizationJob

func (c *Bedrock) CreateModelCustomizationJob(input *CreateModelCustomizationJobInput) (*CreateModelCustomizationJobOutput, error)

CreateModelCustomizationJob API operation for Amazon Bedrock.

Creates a fine-tuning job to customize a base model.

You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.

For information on the format of training and validation data, see Prepare the datasets (https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html).

Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation CreateModelCustomizationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelCustomizationJob

func (*Bedrock) CreateModelCustomizationJobRequest

func (c *Bedrock) CreateModelCustomizationJobRequest(input *CreateModelCustomizationJobInput) (req *request.Request, output *CreateModelCustomizationJobOutput)

CreateModelCustomizationJobRequest generates a "aws/request.Request" representing the client's request for the CreateModelCustomizationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateModelCustomizationJob for more information on using the CreateModelCustomizationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateModelCustomizationJobRequest method.
req, resp := client.CreateModelCustomizationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateModelCustomizationJob

func (*Bedrock) CreateModelCustomizationJobWithContext

func (c *Bedrock) CreateModelCustomizationJobWithContext(ctx aws.Context, input *CreateModelCustomizationJobInput, opts ...request.Option) (*CreateModelCustomizationJobOutput, error)

CreateModelCustomizationJobWithContext is the same as CreateModelCustomizationJob with the addition of the ability to pass a context and additional request options.

See CreateModelCustomizationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) CreateProvisionedModelThroughput added in v1.45.20

func (c *Bedrock) CreateProvisionedModelThroughput(input *CreateProvisionedModelThroughputInput) (*CreateProvisionedModelThroughputOutput, error)

CreateProvisionedModelThroughput API operation for Amazon Bedrock.

Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see Amazon Bedrock Pricing (http://aws.amazon.com/bedrock/pricing/). For more information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation CreateProvisionedModelThroughput for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateProvisionedModelThroughput

func (*Bedrock) CreateProvisionedModelThroughputRequest added in v1.45.20

func (c *Bedrock) CreateProvisionedModelThroughputRequest(input *CreateProvisionedModelThroughputInput) (req *request.Request, output *CreateProvisionedModelThroughputOutput)

CreateProvisionedModelThroughputRequest generates a "aws/request.Request" representing the client's request for the CreateProvisionedModelThroughput operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateProvisionedModelThroughput for more information on using the CreateProvisionedModelThroughput API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateProvisionedModelThroughputRequest method.
req, resp := client.CreateProvisionedModelThroughputRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateProvisionedModelThroughput

func (*Bedrock) CreateProvisionedModelThroughputWithContext added in v1.45.20

func (c *Bedrock) CreateProvisionedModelThroughputWithContext(ctx aws.Context, input *CreateProvisionedModelThroughputInput, opts ...request.Option) (*CreateProvisionedModelThroughputOutput, error)

CreateProvisionedModelThroughputWithContext is the same as CreateProvisionedModelThroughput with the addition of the ability to pass a context and additional request options.

See CreateProvisionedModelThroughput for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) DeleteCustomModel

func (c *Bedrock) DeleteCustomModel(input *DeleteCustomModelInput) (*DeleteCustomModelOutput, error)

DeleteCustomModel API operation for Amazon Bedrock.

Deletes a custom model that you created earlier. For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation DeleteCustomModel for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteCustomModel

func (*Bedrock) DeleteCustomModelRequest

func (c *Bedrock) DeleteCustomModelRequest(input *DeleteCustomModelInput) (req *request.Request, output *DeleteCustomModelOutput)

DeleteCustomModelRequest generates a "aws/request.Request" representing the client's request for the DeleteCustomModel operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCustomModel for more information on using the DeleteCustomModel API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCustomModelRequest method.
req, resp := client.DeleteCustomModelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteCustomModel

func (*Bedrock) DeleteCustomModelWithContext

func (c *Bedrock) DeleteCustomModelWithContext(ctx aws.Context, input *DeleteCustomModelInput, opts ...request.Option) (*DeleteCustomModelOutput, error)

DeleteCustomModelWithContext is the same as DeleteCustomModel with the addition of the ability to pass a context and additional request options.

See DeleteCustomModel for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) DeleteGuardrail added in v1.51.27

func (c *Bedrock) DeleteGuardrail(input *DeleteGuardrailInput) (*DeleteGuardrailOutput, error)

DeleteGuardrail API operation for Amazon Bedrock.

Deletes a guardrail.

  • To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier field. If you delete a guardrail, all of its versions will be deleted.

  • To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field and the version in the guardrailVersion field.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation DeleteGuardrail for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteGuardrail

func (*Bedrock) DeleteGuardrailRequest added in v1.51.27

func (c *Bedrock) DeleteGuardrailRequest(input *DeleteGuardrailInput) (req *request.Request, output *DeleteGuardrailOutput)

DeleteGuardrailRequest generates a "aws/request.Request" representing the client's request for the DeleteGuardrail operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteGuardrail for more information on using the DeleteGuardrail API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteGuardrailRequest method.
req, resp := client.DeleteGuardrailRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteGuardrail

func (*Bedrock) DeleteGuardrailWithContext added in v1.51.27

func (c *Bedrock) DeleteGuardrailWithContext(ctx aws.Context, input *DeleteGuardrailInput, opts ...request.Option) (*DeleteGuardrailOutput, error)

DeleteGuardrailWithContext is the same as DeleteGuardrail with the addition of the ability to pass a context and additional request options.

See DeleteGuardrail for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) DeleteModelInvocationLoggingConfiguration

DeleteModelInvocationLoggingConfiguration API operation for Amazon Bedrock.

Delete the invocation logging.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation DeleteModelInvocationLoggingConfiguration for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteModelInvocationLoggingConfiguration

func (*Bedrock) DeleteModelInvocationLoggingConfigurationRequest

func (c *Bedrock) DeleteModelInvocationLoggingConfigurationRequest(input *DeleteModelInvocationLoggingConfigurationInput) (req *request.Request, output *DeleteModelInvocationLoggingConfigurationOutput)

DeleteModelInvocationLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteModelInvocationLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteModelInvocationLoggingConfiguration for more information on using the DeleteModelInvocationLoggingConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteModelInvocationLoggingConfigurationRequest method.
req, resp := client.DeleteModelInvocationLoggingConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteModelInvocationLoggingConfiguration

func (*Bedrock) DeleteModelInvocationLoggingConfigurationWithContext

func (c *Bedrock) DeleteModelInvocationLoggingConfigurationWithContext(ctx aws.Context, input *DeleteModelInvocationLoggingConfigurationInput, opts ...request.Option) (*DeleteModelInvocationLoggingConfigurationOutput, error)

DeleteModelInvocationLoggingConfigurationWithContext is the same as DeleteModelInvocationLoggingConfiguration with the addition of the ability to pass a context and additional request options.

See DeleteModelInvocationLoggingConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) DeleteProvisionedModelThroughput added in v1.45.20

func (c *Bedrock) DeleteProvisionedModelThroughput(input *DeleteProvisionedModelThroughputInput) (*DeleteProvisionedModelThroughputOutput, error)

DeleteProvisionedModelThroughput API operation for Amazon Bedrock.

Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation DeleteProvisionedModelThroughput for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteProvisionedModelThroughput

func (*Bedrock) DeleteProvisionedModelThroughputRequest added in v1.45.20

func (c *Bedrock) DeleteProvisionedModelThroughputRequest(input *DeleteProvisionedModelThroughputInput) (req *request.Request, output *DeleteProvisionedModelThroughputOutput)

DeleteProvisionedModelThroughputRequest generates a "aws/request.Request" representing the client's request for the DeleteProvisionedModelThroughput operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteProvisionedModelThroughput for more information on using the DeleteProvisionedModelThroughput API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteProvisionedModelThroughputRequest method.
req, resp := client.DeleteProvisionedModelThroughputRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteProvisionedModelThroughput

func (*Bedrock) DeleteProvisionedModelThroughputWithContext added in v1.45.20

func (c *Bedrock) DeleteProvisionedModelThroughputWithContext(ctx aws.Context, input *DeleteProvisionedModelThroughputInput, opts ...request.Option) (*DeleteProvisionedModelThroughputOutput, error)

DeleteProvisionedModelThroughputWithContext is the same as DeleteProvisionedModelThroughput with the addition of the ability to pass a context and additional request options.

See DeleteProvisionedModelThroughput for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetCustomModel

func (c *Bedrock) GetCustomModel(input *GetCustomModelInput) (*GetCustomModelOutput, error)

GetCustomModel API operation for Amazon Bedrock.

Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetCustomModel for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel

func (*Bedrock) GetCustomModelRequest

func (c *Bedrock) GetCustomModelRequest(input *GetCustomModelInput) (req *request.Request, output *GetCustomModelOutput)

GetCustomModelRequest generates a "aws/request.Request" representing the client's request for the GetCustomModel operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCustomModel for more information on using the GetCustomModel API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCustomModelRequest method.
req, resp := client.GetCustomModelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetCustomModel

func (*Bedrock) GetCustomModelWithContext

func (c *Bedrock) GetCustomModelWithContext(ctx aws.Context, input *GetCustomModelInput, opts ...request.Option) (*GetCustomModelOutput, error)

GetCustomModelWithContext is the same as GetCustomModel with the addition of the ability to pass a context and additional request options.

See GetCustomModel for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetEvaluationJob added in v1.51.27

func (c *Bedrock) GetEvaluationJob(input *GetEvaluationJobInput) (*GetEvaluationJobOutput, error)

GetEvaluationJob API operation for Amazon Bedrock.

Retrieves the properties associated with a model evaluation job, including the status of the job. For more information, see Model evaluations (https://docs.aws.amazon.com/bedrock/latest/userguide/latest/userguide/model-evaluation.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetEvaluationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetEvaluationJob

func (*Bedrock) GetEvaluationJobRequest added in v1.51.27

func (c *Bedrock) GetEvaluationJobRequest(input *GetEvaluationJobInput) (req *request.Request, output *GetEvaluationJobOutput)

GetEvaluationJobRequest generates a "aws/request.Request" representing the client's request for the GetEvaluationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetEvaluationJob for more information on using the GetEvaluationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetEvaluationJobRequest method.
req, resp := client.GetEvaluationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetEvaluationJob

func (*Bedrock) GetEvaluationJobWithContext added in v1.51.27

func (c *Bedrock) GetEvaluationJobWithContext(ctx aws.Context, input *GetEvaluationJobInput, opts ...request.Option) (*GetEvaluationJobOutput, error)

GetEvaluationJobWithContext is the same as GetEvaluationJob with the addition of the ability to pass a context and additional request options.

See GetEvaluationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetFoundationModel

func (c *Bedrock) GetFoundationModel(input *GetFoundationModelInput) (*GetFoundationModelOutput, error)

GetFoundationModel API operation for Amazon Bedrock.

Get details about a Amazon Bedrock foundation model.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetFoundationModel for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModel

func (*Bedrock) GetFoundationModelRequest

func (c *Bedrock) GetFoundationModelRequest(input *GetFoundationModelInput) (req *request.Request, output *GetFoundationModelOutput)

GetFoundationModelRequest generates a "aws/request.Request" representing the client's request for the GetFoundationModel operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFoundationModel for more information on using the GetFoundationModel API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFoundationModelRequest method.
req, resp := client.GetFoundationModelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModel

func (*Bedrock) GetFoundationModelWithContext

func (c *Bedrock) GetFoundationModelWithContext(ctx aws.Context, input *GetFoundationModelInput, opts ...request.Option) (*GetFoundationModelOutput, error)

GetFoundationModelWithContext is the same as GetFoundationModel with the addition of the ability to pass a context and additional request options.

See GetFoundationModel for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetGuardrail added in v1.51.27

func (c *Bedrock) GetGuardrail(input *GetGuardrailInput) (*GetGuardrailOutput, error)

GetGuardrail API operation for Amazon Bedrock.

Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetGuardrail for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetGuardrail

func (*Bedrock) GetGuardrailRequest added in v1.51.27

func (c *Bedrock) GetGuardrailRequest(input *GetGuardrailInput) (req *request.Request, output *GetGuardrailOutput)

GetGuardrailRequest generates a "aws/request.Request" representing the client's request for the GetGuardrail operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetGuardrail for more information on using the GetGuardrail API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetGuardrailRequest method.
req, resp := client.GetGuardrailRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetGuardrail

func (*Bedrock) GetGuardrailWithContext added in v1.51.27

func (c *Bedrock) GetGuardrailWithContext(ctx aws.Context, input *GetGuardrailInput, opts ...request.Option) (*GetGuardrailOutput, error)

GetGuardrailWithContext is the same as GetGuardrail with the addition of the ability to pass a context and additional request options.

See GetGuardrail for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetModelCustomizationJob

func (c *Bedrock) GetModelCustomizationJob(input *GetModelCustomizationJobInput) (*GetModelCustomizationJobOutput, error)

GetModelCustomizationJob API operation for Amazon Bedrock.

Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetModelCustomizationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelCustomizationJob

func (*Bedrock) GetModelCustomizationJobRequest

func (c *Bedrock) GetModelCustomizationJobRequest(input *GetModelCustomizationJobInput) (req *request.Request, output *GetModelCustomizationJobOutput)

GetModelCustomizationJobRequest generates a "aws/request.Request" representing the client's request for the GetModelCustomizationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetModelCustomizationJob for more information on using the GetModelCustomizationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetModelCustomizationJobRequest method.
req, resp := client.GetModelCustomizationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelCustomizationJob

func (*Bedrock) GetModelCustomizationJobWithContext

func (c *Bedrock) GetModelCustomizationJobWithContext(ctx aws.Context, input *GetModelCustomizationJobInput, opts ...request.Option) (*GetModelCustomizationJobOutput, error)

GetModelCustomizationJobWithContext is the same as GetModelCustomizationJob with the addition of the ability to pass a context and additional request options.

See GetModelCustomizationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetModelInvocationLoggingConfiguration

func (c *Bedrock) GetModelInvocationLoggingConfiguration(input *GetModelInvocationLoggingConfigurationInput) (*GetModelInvocationLoggingConfigurationOutput, error)

GetModelInvocationLoggingConfiguration API operation for Amazon Bedrock.

Get the current configuration values for model invocation logging.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetModelInvocationLoggingConfiguration for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfiguration

func (*Bedrock) GetModelInvocationLoggingConfigurationRequest

func (c *Bedrock) GetModelInvocationLoggingConfigurationRequest(input *GetModelInvocationLoggingConfigurationInput) (req *request.Request, output *GetModelInvocationLoggingConfigurationOutput)

GetModelInvocationLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetModelInvocationLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetModelInvocationLoggingConfiguration for more information on using the GetModelInvocationLoggingConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetModelInvocationLoggingConfigurationRequest method.
req, resp := client.GetModelInvocationLoggingConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetModelInvocationLoggingConfiguration

func (*Bedrock) GetModelInvocationLoggingConfigurationWithContext

func (c *Bedrock) GetModelInvocationLoggingConfigurationWithContext(ctx aws.Context, input *GetModelInvocationLoggingConfigurationInput, opts ...request.Option) (*GetModelInvocationLoggingConfigurationOutput, error)

GetModelInvocationLoggingConfigurationWithContext is the same as GetModelInvocationLoggingConfiguration with the addition of the ability to pass a context and additional request options.

See GetModelInvocationLoggingConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) GetProvisionedModelThroughput added in v1.45.20

func (c *Bedrock) GetProvisionedModelThroughput(input *GetProvisionedModelThroughputInput) (*GetProvisionedModelThroughputOutput, error)

GetProvisionedModelThroughput API operation for Amazon Bedrock.

Returns details for a Provisioned Throughput. For more information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation GetProvisionedModelThroughput for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughput

func (*Bedrock) GetProvisionedModelThroughputRequest added in v1.45.20

func (c *Bedrock) GetProvisionedModelThroughputRequest(input *GetProvisionedModelThroughputInput) (req *request.Request, output *GetProvisionedModelThroughputOutput)

GetProvisionedModelThroughputRequest generates a "aws/request.Request" representing the client's request for the GetProvisionedModelThroughput operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetProvisionedModelThroughput for more information on using the GetProvisionedModelThroughput API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetProvisionedModelThroughputRequest method.
req, resp := client.GetProvisionedModelThroughputRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetProvisionedModelThroughput

func (*Bedrock) GetProvisionedModelThroughputWithContext added in v1.45.20

func (c *Bedrock) GetProvisionedModelThroughputWithContext(ctx aws.Context, input *GetProvisionedModelThroughputInput, opts ...request.Option) (*GetProvisionedModelThroughputOutput, error)

GetProvisionedModelThroughputWithContext is the same as GetProvisionedModelThroughput with the addition of the ability to pass a context and additional request options.

See GetProvisionedModelThroughput for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListCustomModels

func (c *Bedrock) ListCustomModels(input *ListCustomModelsInput) (*ListCustomModelsOutput, error)

ListCustomModels API operation for Amazon Bedrock.

Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.

For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListCustomModels for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels

func (*Bedrock) ListCustomModelsPages

func (c *Bedrock) ListCustomModelsPages(input *ListCustomModelsInput, fn func(*ListCustomModelsOutput, bool) bool) error

ListCustomModelsPages iterates over the pages of a ListCustomModels operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListCustomModels method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListCustomModels operation.
pageNum := 0
err := client.ListCustomModelsPages(params,
    func(page *bedrock.ListCustomModelsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Bedrock) ListCustomModelsPagesWithContext

func (c *Bedrock) ListCustomModelsPagesWithContext(ctx aws.Context, input *ListCustomModelsInput, fn func(*ListCustomModelsOutput, bool) bool, opts ...request.Option) error

ListCustomModelsPagesWithContext same as ListCustomModelsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListCustomModelsRequest

func (c *Bedrock) ListCustomModelsRequest(input *ListCustomModelsInput) (req *request.Request, output *ListCustomModelsOutput)

ListCustomModelsRequest generates a "aws/request.Request" representing the client's request for the ListCustomModels operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListCustomModels for more information on using the ListCustomModels API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListCustomModelsRequest method.
req, resp := client.ListCustomModelsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListCustomModels

func (*Bedrock) ListCustomModelsWithContext

func (c *Bedrock) ListCustomModelsWithContext(ctx aws.Context, input *ListCustomModelsInput, opts ...request.Option) (*ListCustomModelsOutput, error)

ListCustomModelsWithContext is the same as ListCustomModels with the addition of the ability to pass a context and additional request options.

See ListCustomModels for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListEvaluationJobs added in v1.51.27

func (c *Bedrock) ListEvaluationJobs(input *ListEvaluationJobsInput) (*ListEvaluationJobsOutput, error)

ListEvaluationJobs API operation for Amazon Bedrock.

Lists model evaluation jobs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListEvaluationJobs for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListEvaluationJobs

func (*Bedrock) ListEvaluationJobsPages added in v1.51.27

func (c *Bedrock) ListEvaluationJobsPages(input *ListEvaluationJobsInput, fn func(*ListEvaluationJobsOutput, bool) bool) error

ListEvaluationJobsPages iterates over the pages of a ListEvaluationJobs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListEvaluationJobs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListEvaluationJobs operation.
pageNum := 0
err := client.ListEvaluationJobsPages(params,
    func(page *bedrock.ListEvaluationJobsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Bedrock) ListEvaluationJobsPagesWithContext added in v1.51.27

func (c *Bedrock) ListEvaluationJobsPagesWithContext(ctx aws.Context, input *ListEvaluationJobsInput, fn func(*ListEvaluationJobsOutput, bool) bool, opts ...request.Option) error

ListEvaluationJobsPagesWithContext same as ListEvaluationJobsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListEvaluationJobsRequest added in v1.51.27

func (c *Bedrock) ListEvaluationJobsRequest(input *ListEvaluationJobsInput) (req *request.Request, output *ListEvaluationJobsOutput)

ListEvaluationJobsRequest generates a "aws/request.Request" representing the client's request for the ListEvaluationJobs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListEvaluationJobs for more information on using the ListEvaluationJobs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListEvaluationJobsRequest method.
req, resp := client.ListEvaluationJobsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListEvaluationJobs

func (*Bedrock) ListEvaluationJobsWithContext added in v1.51.27

func (c *Bedrock) ListEvaluationJobsWithContext(ctx aws.Context, input *ListEvaluationJobsInput, opts ...request.Option) (*ListEvaluationJobsOutput, error)

ListEvaluationJobsWithContext is the same as ListEvaluationJobs with the addition of the ability to pass a context and additional request options.

See ListEvaluationJobs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListFoundationModels

func (c *Bedrock) ListFoundationModels(input *ListFoundationModelsInput) (*ListFoundationModelsOutput, error)

ListFoundationModels API operation for Amazon Bedrock.

Lists Amazon Bedrock foundation models that you can use. You can filter the results with the request parameters. For more information, see Foundation models (https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListFoundationModels for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModels

func (*Bedrock) ListFoundationModelsRequest

func (c *Bedrock) ListFoundationModelsRequest(input *ListFoundationModelsInput) (req *request.Request, output *ListFoundationModelsOutput)

ListFoundationModelsRequest generates a "aws/request.Request" representing the client's request for the ListFoundationModels operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListFoundationModels for more information on using the ListFoundationModels API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListFoundationModelsRequest method.
req, resp := client.ListFoundationModelsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListFoundationModels

func (*Bedrock) ListFoundationModelsWithContext

func (c *Bedrock) ListFoundationModelsWithContext(ctx aws.Context, input *ListFoundationModelsInput, opts ...request.Option) (*ListFoundationModelsOutput, error)

ListFoundationModelsWithContext is the same as ListFoundationModels with the addition of the ability to pass a context and additional request options.

See ListFoundationModels for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListGuardrails added in v1.51.27

func (c *Bedrock) ListGuardrails(input *ListGuardrailsInput) (*ListGuardrailsOutput, error)

ListGuardrails API operation for Amazon Bedrock.

Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.

You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListGuardrails for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListGuardrails

func (*Bedrock) ListGuardrailsPages added in v1.51.27

func (c *Bedrock) ListGuardrailsPages(input *ListGuardrailsInput, fn func(*ListGuardrailsOutput, bool) bool) error

ListGuardrailsPages iterates over the pages of a ListGuardrails operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListGuardrails method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListGuardrails operation.
pageNum := 0
err := client.ListGuardrailsPages(params,
    func(page *bedrock.ListGuardrailsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Bedrock) ListGuardrailsPagesWithContext added in v1.51.27

func (c *Bedrock) ListGuardrailsPagesWithContext(ctx aws.Context, input *ListGuardrailsInput, fn func(*ListGuardrailsOutput, bool) bool, opts ...request.Option) error

ListGuardrailsPagesWithContext same as ListGuardrailsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListGuardrailsRequest added in v1.51.27

func (c *Bedrock) ListGuardrailsRequest(input *ListGuardrailsInput) (req *request.Request, output *ListGuardrailsOutput)

ListGuardrailsRequest generates a "aws/request.Request" representing the client's request for the ListGuardrails operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListGuardrails for more information on using the ListGuardrails API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListGuardrailsRequest method.
req, resp := client.ListGuardrailsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListGuardrails

func (*Bedrock) ListGuardrailsWithContext added in v1.51.27

func (c *Bedrock) ListGuardrailsWithContext(ctx aws.Context, input *ListGuardrailsInput, opts ...request.Option) (*ListGuardrailsOutput, error)

ListGuardrailsWithContext is the same as ListGuardrails with the addition of the ability to pass a context and additional request options.

See ListGuardrails for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListModelCustomizationJobs

func (c *Bedrock) ListModelCustomizationJobs(input *ListModelCustomizationJobsInput) (*ListModelCustomizationJobsOutput, error)

ListModelCustomizationJobs API operation for Amazon Bedrock.

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.

For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListModelCustomizationJobs for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs

func (*Bedrock) ListModelCustomizationJobsPages

func (c *Bedrock) ListModelCustomizationJobsPages(input *ListModelCustomizationJobsInput, fn func(*ListModelCustomizationJobsOutput, bool) bool) error

ListModelCustomizationJobsPages iterates over the pages of a ListModelCustomizationJobs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListModelCustomizationJobs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListModelCustomizationJobs operation.
pageNum := 0
err := client.ListModelCustomizationJobsPages(params,
    func(page *bedrock.ListModelCustomizationJobsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Bedrock) ListModelCustomizationJobsPagesWithContext

func (c *Bedrock) ListModelCustomizationJobsPagesWithContext(ctx aws.Context, input *ListModelCustomizationJobsInput, fn func(*ListModelCustomizationJobsOutput, bool) bool, opts ...request.Option) error

ListModelCustomizationJobsPagesWithContext same as ListModelCustomizationJobsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListModelCustomizationJobsRequest

func (c *Bedrock) ListModelCustomizationJobsRequest(input *ListModelCustomizationJobsInput) (req *request.Request, output *ListModelCustomizationJobsOutput)

ListModelCustomizationJobsRequest generates a "aws/request.Request" representing the client's request for the ListModelCustomizationJobs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListModelCustomizationJobs for more information on using the ListModelCustomizationJobs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListModelCustomizationJobsRequest method.
req, resp := client.ListModelCustomizationJobsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelCustomizationJobs

func (*Bedrock) ListModelCustomizationJobsWithContext

func (c *Bedrock) ListModelCustomizationJobsWithContext(ctx aws.Context, input *ListModelCustomizationJobsInput, opts ...request.Option) (*ListModelCustomizationJobsOutput, error)

ListModelCustomizationJobsWithContext is the same as ListModelCustomizationJobs with the addition of the ability to pass a context and additional request options.

See ListModelCustomizationJobs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListProvisionedModelThroughputs added in v1.45.20

func (c *Bedrock) ListProvisionedModelThroughputs(input *ListProvisionedModelThroughputsInput) (*ListProvisionedModelThroughputsOutput, error)

ListProvisionedModelThroughputs API operation for Amazon Bedrock.

Lists the Provisioned Throughputs in the account. For more information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListProvisionedModelThroughputs for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListProvisionedModelThroughputs

func (*Bedrock) ListProvisionedModelThroughputsPages added in v1.45.20

func (c *Bedrock) ListProvisionedModelThroughputsPages(input *ListProvisionedModelThroughputsInput, fn func(*ListProvisionedModelThroughputsOutput, bool) bool) error

ListProvisionedModelThroughputsPages iterates over the pages of a ListProvisionedModelThroughputs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProvisionedModelThroughputs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListProvisionedModelThroughputs operation.
pageNum := 0
err := client.ListProvisionedModelThroughputsPages(params,
    func(page *bedrock.ListProvisionedModelThroughputsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Bedrock) ListProvisionedModelThroughputsPagesWithContext added in v1.45.20

func (c *Bedrock) ListProvisionedModelThroughputsPagesWithContext(ctx aws.Context, input *ListProvisionedModelThroughputsInput, fn func(*ListProvisionedModelThroughputsOutput, bool) bool, opts ...request.Option) error

ListProvisionedModelThroughputsPagesWithContext same as ListProvisionedModelThroughputsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListProvisionedModelThroughputsRequest added in v1.45.20

func (c *Bedrock) ListProvisionedModelThroughputsRequest(input *ListProvisionedModelThroughputsInput) (req *request.Request, output *ListProvisionedModelThroughputsOutput)

ListProvisionedModelThroughputsRequest generates a "aws/request.Request" representing the client's request for the ListProvisionedModelThroughputs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListProvisionedModelThroughputs for more information on using the ListProvisionedModelThroughputs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListProvisionedModelThroughputsRequest method.
req, resp := client.ListProvisionedModelThroughputsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListProvisionedModelThroughputs

func (*Bedrock) ListProvisionedModelThroughputsWithContext added in v1.45.20

func (c *Bedrock) ListProvisionedModelThroughputsWithContext(ctx aws.Context, input *ListProvisionedModelThroughputsInput, opts ...request.Option) (*ListProvisionedModelThroughputsOutput, error)

ListProvisionedModelThroughputsWithContext is the same as ListProvisionedModelThroughputs with the addition of the ability to pass a context and additional request options.

See ListProvisionedModelThroughputs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) ListTagsForResource

func (c *Bedrock) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for Amazon Bedrock.

List the tags associated with the specified resource.

For more information, see Tagging resources (https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation ListTagsForResource for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListTagsForResource

func (*Bedrock) ListTagsForResourceRequest

func (c *Bedrock) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method.
req, resp := client.ListTagsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListTagsForResource

func (*Bedrock) ListTagsForResourceWithContext

func (c *Bedrock) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) PutModelInvocationLoggingConfiguration

func (c *Bedrock) PutModelInvocationLoggingConfiguration(input *PutModelInvocationLoggingConfigurationInput) (*PutModelInvocationLoggingConfigurationOutput, error)

PutModelInvocationLoggingConfiguration API operation for Amazon Bedrock.

Set the configuration values for model invocation logging.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation PutModelInvocationLoggingConfiguration for usage and error information.

Returned Error Types:

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutModelInvocationLoggingConfiguration

func (*Bedrock) PutModelInvocationLoggingConfigurationRequest

func (c *Bedrock) PutModelInvocationLoggingConfigurationRequest(input *PutModelInvocationLoggingConfigurationInput) (req *request.Request, output *PutModelInvocationLoggingConfigurationOutput)

PutModelInvocationLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the PutModelInvocationLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutModelInvocationLoggingConfiguration for more information on using the PutModelInvocationLoggingConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutModelInvocationLoggingConfigurationRequest method.
req, resp := client.PutModelInvocationLoggingConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutModelInvocationLoggingConfiguration

func (*Bedrock) PutModelInvocationLoggingConfigurationWithContext

func (c *Bedrock) PutModelInvocationLoggingConfigurationWithContext(ctx aws.Context, input *PutModelInvocationLoggingConfigurationInput, opts ...request.Option) (*PutModelInvocationLoggingConfigurationOutput, error)

PutModelInvocationLoggingConfigurationWithContext is the same as PutModelInvocationLoggingConfiguration with the addition of the ability to pass a context and additional request options.

See PutModelInvocationLoggingConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) StopEvaluationJob added in v1.51.27

func (c *Bedrock) StopEvaluationJob(input *StopEvaluationJobInput) (*StopEvaluationJobOutput, error)

StopEvaluationJob API operation for Amazon Bedrock.

Stops an in progress model evaluation job.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation StopEvaluationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopEvaluationJob

func (*Bedrock) StopEvaluationJobRequest added in v1.51.27

func (c *Bedrock) StopEvaluationJobRequest(input *StopEvaluationJobInput) (req *request.Request, output *StopEvaluationJobOutput)

StopEvaluationJobRequest generates a "aws/request.Request" representing the client's request for the StopEvaluationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopEvaluationJob for more information on using the StopEvaluationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopEvaluationJobRequest method.
req, resp := client.StopEvaluationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopEvaluationJob

func (*Bedrock) StopEvaluationJobWithContext added in v1.51.27

func (c *Bedrock) StopEvaluationJobWithContext(ctx aws.Context, input *StopEvaluationJobInput, opts ...request.Option) (*StopEvaluationJobOutput, error)

StopEvaluationJobWithContext is the same as StopEvaluationJob with the addition of the ability to pass a context and additional request options.

See StopEvaluationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) StopModelCustomizationJob

func (c *Bedrock) StopModelCustomizationJob(input *StopModelCustomizationJobInput) (*StopModelCustomizationJobOutput, error)

StopModelCustomizationJob API operation for Amazon Bedrock.

Stops an active model customization job. For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation StopModelCustomizationJob for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelCustomizationJob

func (*Bedrock) StopModelCustomizationJobRequest

func (c *Bedrock) StopModelCustomizationJobRequest(input *StopModelCustomizationJobInput) (req *request.Request, output *StopModelCustomizationJobOutput)

StopModelCustomizationJobRequest generates a "aws/request.Request" representing the client's request for the StopModelCustomizationJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopModelCustomizationJob for more information on using the StopModelCustomizationJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopModelCustomizationJobRequest method.
req, resp := client.StopModelCustomizationJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/StopModelCustomizationJob

func (*Bedrock) StopModelCustomizationJobWithContext

func (c *Bedrock) StopModelCustomizationJobWithContext(ctx aws.Context, input *StopModelCustomizationJobInput, opts ...request.Option) (*StopModelCustomizationJobOutput, error)

StopModelCustomizationJobWithContext is the same as StopModelCustomizationJob with the addition of the ability to pass a context and additional request options.

See StopModelCustomizationJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) TagResource

func (c *Bedrock) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for Amazon Bedrock.

Associate tags with a resource. For more information, see Tagging resources (https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation TagResource for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/TagResource

func (*Bedrock) TagResourceRequest

func (c *Bedrock) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagResource for more information on using the TagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagResourceRequest method.
req, resp := client.TagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/TagResource

func (*Bedrock) TagResourceWithContext

func (c *Bedrock) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.

See TagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) UntagResource

func (c *Bedrock) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for Amazon Bedrock.

Remove one or more tags from a resource. For more information, see Tagging resources (https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation UntagResource for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UntagResource

func (*Bedrock) UntagResourceRequest

func (c *Bedrock) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagResource for more information on using the UntagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagResourceRequest method.
req, resp := client.UntagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UntagResource

func (*Bedrock) UntagResourceWithContext

func (c *Bedrock) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.

See UntagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) UpdateGuardrail added in v1.51.27

func (c *Bedrock) UpdateGuardrail(input *UpdateGuardrailInput) (*UpdateGuardrailOutput, error)

UpdateGuardrail API operation for Amazon Bedrock.

Updates a guardrail with the values you specify.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation UpdateGuardrail for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • ConflictException Error occurred because of a conflict while performing an operation.

  • InternalServerException An internal server error occurred. Retry your request.

  • ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateGuardrail

func (*Bedrock) UpdateGuardrailRequest added in v1.51.27

func (c *Bedrock) UpdateGuardrailRequest(input *UpdateGuardrailInput) (req *request.Request, output *UpdateGuardrailOutput)

UpdateGuardrailRequest generates a "aws/request.Request" representing the client's request for the UpdateGuardrail operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateGuardrail for more information on using the UpdateGuardrail API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateGuardrailRequest method.
req, resp := client.UpdateGuardrailRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateGuardrail

func (*Bedrock) UpdateGuardrailWithContext added in v1.51.27

func (c *Bedrock) UpdateGuardrailWithContext(ctx aws.Context, input *UpdateGuardrailInput, opts ...request.Option) (*UpdateGuardrailOutput, error)

UpdateGuardrailWithContext is the same as UpdateGuardrail with the addition of the ability to pass a context and additional request options.

See UpdateGuardrail for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Bedrock) UpdateProvisionedModelThroughput added in v1.45.20

func (c *Bedrock) UpdateProvisionedModelThroughput(input *UpdateProvisionedModelThroughputInput) (*UpdateProvisionedModelThroughputOutput, error)

UpdateProvisionedModelThroughput API operation for Amazon Bedrock.

Updates the name or associated model for a Provisioned Throughput. For more information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) in the Amazon Bedrock User Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Bedrock's API operation UpdateProvisionedModelThroughput for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

  • AccessDeniedException The request is denied because of missing access permissions.

  • ValidationException Input validation failed. Check your request parameters and retry the request.

  • InternalServerException An internal server error occurred. Retry your request.

  • ThrottlingException The number of requests exceeds the limit. Resubmit your request later.

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateProvisionedModelThroughput

func (*Bedrock) UpdateProvisionedModelThroughputRequest added in v1.45.20

func (c *Bedrock) UpdateProvisionedModelThroughputRequest(input *UpdateProvisionedModelThroughputInput) (req *request.Request, output *UpdateProvisionedModelThroughputOutput)

UpdateProvisionedModelThroughputRequest generates a "aws/request.Request" representing the client's request for the UpdateProvisionedModelThroughput operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateProvisionedModelThroughput for more information on using the UpdateProvisionedModelThroughput API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateProvisionedModelThroughputRequest method.
req, resp := client.UpdateProvisionedModelThroughputRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateProvisionedModelThroughput

func (*Bedrock) UpdateProvisionedModelThroughputWithContext added in v1.45.20

func (c *Bedrock) UpdateProvisionedModelThroughputWithContext(ctx aws.Context, input *UpdateProvisionedModelThroughputInput, opts ...request.Option) (*UpdateProvisionedModelThroughputOutput, error)

UpdateProvisionedModelThroughputWithContext is the same as UpdateProvisionedModelThroughput with the addition of the ability to pass a context and additional request options.

See UpdateProvisionedModelThroughput for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type CloudWatchConfig

type CloudWatchConfig struct {

	// S3 configuration for delivering a large amount of data.
	LargeDataDeliveryS3Config *S3Config `locationName:"largeDataDeliveryS3Config" type:"structure"`

	// The log group name.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The role Amazon Resource Name (ARN).
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

CloudWatch logging configuration.

func (CloudWatchConfig) GoString

func (s CloudWatchConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CloudWatchConfig) SetLargeDataDeliveryS3Config

func (s *CloudWatchConfig) SetLargeDataDeliveryS3Config(v *S3Config) *CloudWatchConfig

SetLargeDataDeliveryS3Config sets the LargeDataDeliveryS3Config field's value.

func (*CloudWatchConfig) SetLogGroupName

func (s *CloudWatchConfig) SetLogGroupName(v string) *CloudWatchConfig

SetLogGroupName sets the LogGroupName field's value.

func (*CloudWatchConfig) SetRoleArn

func (s *CloudWatchConfig) SetRoleArn(v string) *CloudWatchConfig

SetRoleArn sets the RoleArn field's value.

func (CloudWatchConfig) String

func (s CloudWatchConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CloudWatchConfig) Validate

func (s *CloudWatchConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ConflictException

type ConflictException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Error occurred because of a conflict while performing an operation.

func (*ConflictException) Code

func (s *ConflictException) Code() string

Code returns the exception type name.

func (*ConflictException) Error

func (s *ConflictException) Error() string

func (ConflictException) GoString

func (s ConflictException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ConflictException) Message

func (s *ConflictException) Message() string

Message returns the exception's message.

func (*ConflictException) OrigErr

func (s *ConflictException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ConflictException) RequestID

func (s *ConflictException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ConflictException) StatusCode

func (s *ConflictException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ConflictException) String

func (s ConflictException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateEvaluationJobInput added in v1.51.27

type CreateEvaluationJobInput struct {

	// A unique, case-sensitive identifier to ensure that the API request completes
	// no more than one time. If this token matches a previous request, Amazon Bedrock
	// ignores the request, but does not return an error. For more information,
	// see Ensuring idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`

	// Specify your customer managed key ARN that will be used to encrypt your model
	// evaluation job.
	CustomerEncryptionKeyId *string `locationName:"customerEncryptionKeyId" min:"1" type:"string"`

	// Specifies whether the model evaluation job is automatic or uses human worker.
	//
	// EvaluationConfig is a required field
	EvaluationConfig *EvaluationConfig `locationName:"evaluationConfig" type:"structure" required:"true"`

	// Specify the models you want to use in your model evaluation job. Automatic
	// model evaluation jobs support a single model, and model evaluation job that
	// use human workers support two models.
	//
	// InferenceConfig is a required field
	InferenceConfig *EvaluationInferenceConfig `locationName:"inferenceConfig" type:"structure" required:"true"`

	// A description of the model evaluation job.
	//
	// JobDescription is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateEvaluationJobInput's
	// String and GoString methods.
	JobDescription *string `locationName:"jobDescription" min:"1" type:"string" sensitive:"true"`

	// The name of the model evaluation job. Model evaluation job names must unique
	// with your AWS account, and your account's AWS region.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// Tags to attach to the model evaluation job.
	JobTags []*Tag `locationName:"jobTags" type:"list"`

	// An object that defines where the results of model evaluation job will be
	// saved in Amazon S3.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *EvaluationOutputDataConfig `locationName:"outputDataConfig" type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock
	// can assume to perform tasks on your behalf. The service role must have Amazon
	// Bedrock as the service principal, and provide access to any Amazon S3 buckets
	// specified in the EvaluationConfig object. To pass this role to Amazon Bedrock,
	// the caller of this API must have the iam:PassRole permission. To learn more
	// about the required permissions, see Required permissions (https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-security.html).
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateEvaluationJobInput) GoString added in v1.51.27

func (s CreateEvaluationJobInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateEvaluationJobInput) SetClientRequestToken added in v1.51.27

func (s *CreateEvaluationJobInput) SetClientRequestToken(v string) *CreateEvaluationJobInput

SetClientRequestToken sets the ClientRequestToken field's value.

func (*CreateEvaluationJobInput) SetCustomerEncryptionKeyId added in v1.51.27

func (s *CreateEvaluationJobInput) SetCustomerEncryptionKeyId(v string) *CreateEvaluationJobInput

SetCustomerEncryptionKeyId sets the CustomerEncryptionKeyId field's value.

func (*CreateEvaluationJobInput) SetEvaluationConfig added in v1.51.27

SetEvaluationConfig sets the EvaluationConfig field's value.

func (*CreateEvaluationJobInput) SetInferenceConfig added in v1.51.27

SetInferenceConfig sets the InferenceConfig field's value.

func (*CreateEvaluationJobInput) SetJobDescription added in v1.51.27

func (s *CreateEvaluationJobInput) SetJobDescription(v string) *CreateEvaluationJobInput

SetJobDescription sets the JobDescription field's value.

func (*CreateEvaluationJobInput) SetJobName added in v1.51.27

SetJobName sets the JobName field's value.

func (*CreateEvaluationJobInput) SetJobTags added in v1.51.27

SetJobTags sets the JobTags field's value.

func (*CreateEvaluationJobInput) SetOutputDataConfig added in v1.51.27

SetOutputDataConfig sets the OutputDataConfig field's value.

func (*CreateEvaluationJobInput) SetRoleArn added in v1.51.27

SetRoleArn sets the RoleArn field's value.

func (CreateEvaluationJobInput) String added in v1.51.27

func (s CreateEvaluationJobInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateEvaluationJobInput) Validate added in v1.51.27

func (s *CreateEvaluationJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateEvaluationJobOutput added in v1.51.27

type CreateEvaluationJobOutput struct {

	// The ARN of the model evaluation job.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateEvaluationJobOutput) GoString added in v1.51.27

func (s CreateEvaluationJobOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateEvaluationJobOutput) SetJobArn added in v1.51.27

SetJobArn sets the JobArn field's value.

func (CreateEvaluationJobOutput) String added in v1.51.27

func (s CreateEvaluationJobOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateGuardrailInput added in v1.51.27

type CreateGuardrailInput struct {

	// The message to return when the guardrail blocks a prompt.
	//
	// BlockedInputMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateGuardrailInput's
	// String and GoString methods.
	//
	// BlockedInputMessaging is a required field
	BlockedInputMessaging *string `locationName:"blockedInputMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// The message to return when the guardrail blocks a model response.
	//
	// BlockedOutputsMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateGuardrailInput's
	// String and GoString methods.
	//
	// BlockedOutputsMessaging is a required field
	BlockedOutputsMessaging *string `locationName:"blockedOutputsMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// A unique, case-sensitive identifier to ensure that the API request completes
	// no more than once. If this token matches a previous request, Amazon Bedrock
	// ignores the request, but does not return an error. For more information,
	// see Ensuring idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html)
	// in the Amazon S3 User Guide.
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`

	// The content filter policies to configure for the guardrail.
	ContentPolicyConfig *GuardrailContentPolicyConfig `locationName:"contentPolicyConfig" type:"structure"`

	// A description of the guardrail.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateGuardrailInput's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// The ARN of the KMS key that you use to encrypt the guardrail.
	KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"`

	// The name to give the guardrail.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateGuardrailInput's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// The sensitive information policy to configure for the guardrail.
	SensitiveInformationPolicyConfig *GuardrailSensitiveInformationPolicyConfig `locationName:"sensitiveInformationPolicyConfig" type:"structure"`

	// The tags that you want to attach to the guardrail.
	Tags []*Tag `locationName:"tags" type:"list"`

	// The topic policies to configure for the guardrail.
	TopicPolicyConfig *GuardrailTopicPolicyConfig `locationName:"topicPolicyConfig" type:"structure"`

	// The word policy you configure for the guardrail.
	WordPolicyConfig *GuardrailWordPolicyConfig `locationName:"wordPolicyConfig" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateGuardrailInput) GoString added in v1.51.27

func (s CreateGuardrailInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailInput) SetBlockedInputMessaging added in v1.51.27

func (s *CreateGuardrailInput) SetBlockedInputMessaging(v string) *CreateGuardrailInput

SetBlockedInputMessaging sets the BlockedInputMessaging field's value.

func (*CreateGuardrailInput) SetBlockedOutputsMessaging added in v1.51.27

func (s *CreateGuardrailInput) SetBlockedOutputsMessaging(v string) *CreateGuardrailInput

SetBlockedOutputsMessaging sets the BlockedOutputsMessaging field's value.

func (*CreateGuardrailInput) SetClientRequestToken added in v1.51.27

func (s *CreateGuardrailInput) SetClientRequestToken(v string) *CreateGuardrailInput

SetClientRequestToken sets the ClientRequestToken field's value.

func (*CreateGuardrailInput) SetContentPolicyConfig added in v1.51.27

SetContentPolicyConfig sets the ContentPolicyConfig field's value.

func (*CreateGuardrailInput) SetDescription added in v1.51.27

func (s *CreateGuardrailInput) SetDescription(v string) *CreateGuardrailInput

SetDescription sets the Description field's value.

func (*CreateGuardrailInput) SetKmsKeyId added in v1.51.27

SetKmsKeyId sets the KmsKeyId field's value.

func (*CreateGuardrailInput) SetName added in v1.51.27

SetName sets the Name field's value.

func (*CreateGuardrailInput) SetSensitiveInformationPolicyConfig added in v1.51.27

func (s *CreateGuardrailInput) SetSensitiveInformationPolicyConfig(v *GuardrailSensitiveInformationPolicyConfig) *CreateGuardrailInput

SetSensitiveInformationPolicyConfig sets the SensitiveInformationPolicyConfig field's value.

func (*CreateGuardrailInput) SetTags added in v1.51.27

func (s *CreateGuardrailInput) SetTags(v []*Tag) *CreateGuardrailInput

SetTags sets the Tags field's value.

func (*CreateGuardrailInput) SetTopicPolicyConfig added in v1.51.27

SetTopicPolicyConfig sets the TopicPolicyConfig field's value.

func (*CreateGuardrailInput) SetWordPolicyConfig added in v1.51.27

SetWordPolicyConfig sets the WordPolicyConfig field's value.

func (CreateGuardrailInput) String added in v1.51.27

func (s CreateGuardrailInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailInput) Validate added in v1.51.27

func (s *CreateGuardrailInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateGuardrailOutput added in v1.51.27

type CreateGuardrailOutput struct {

	// The time at which the guardrail was created.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The ARN of the guardrail that was created.
	//
	// GuardrailArn is a required field
	GuardrailArn *string `locationName:"guardrailArn" type:"string" required:"true"`

	// The unique identifier of the guardrail that was created.
	//
	// GuardrailId is a required field
	GuardrailId *string `locationName:"guardrailId" type:"string" required:"true"`

	// The version of the guardrail that was created. This value should be 1.
	//
	// Version is a required field
	Version *string `locationName:"version" min:"5" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateGuardrailOutput) GoString added in v1.51.27

func (s CreateGuardrailOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailOutput) SetCreatedAt added in v1.51.27

SetCreatedAt sets the CreatedAt field's value.

func (*CreateGuardrailOutput) SetGuardrailArn added in v1.51.27

func (s *CreateGuardrailOutput) SetGuardrailArn(v string) *CreateGuardrailOutput

SetGuardrailArn sets the GuardrailArn field's value.

func (*CreateGuardrailOutput) SetGuardrailId added in v1.51.27

func (s *CreateGuardrailOutput) SetGuardrailId(v string) *CreateGuardrailOutput

SetGuardrailId sets the GuardrailId field's value.

func (*CreateGuardrailOutput) SetVersion added in v1.51.27

SetVersion sets the Version field's value.

func (CreateGuardrailOutput) String added in v1.51.27

func (s CreateGuardrailOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateGuardrailVersionInput added in v1.51.27

type CreateGuardrailVersionInput struct {

	// A unique, case-sensitive identifier to ensure that the API request completes
	// no more than once. If this token matches a previous request, Amazon Bedrock
	// ignores the request, but does not return an error. For more information,
	// see Ensuring idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html)
	// in the Amazon S3 User Guide.
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`

	// A description of the guardrail version.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateGuardrailVersionInput's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// The unique identifier of the guardrail.
	//
	// GuardrailIdentifier is a required field
	GuardrailIdentifier *string `location:"uri" locationName:"guardrailIdentifier" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateGuardrailVersionInput) GoString added in v1.51.27

func (s CreateGuardrailVersionInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailVersionInput) SetClientRequestToken added in v1.51.27

func (s *CreateGuardrailVersionInput) SetClientRequestToken(v string) *CreateGuardrailVersionInput

SetClientRequestToken sets the ClientRequestToken field's value.

func (*CreateGuardrailVersionInput) SetDescription added in v1.51.27

SetDescription sets the Description field's value.

func (*CreateGuardrailVersionInput) SetGuardrailIdentifier added in v1.51.27

func (s *CreateGuardrailVersionInput) SetGuardrailIdentifier(v string) *CreateGuardrailVersionInput

SetGuardrailIdentifier sets the GuardrailIdentifier field's value.

func (CreateGuardrailVersionInput) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailVersionInput) Validate added in v1.51.27

func (s *CreateGuardrailVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateGuardrailVersionOutput added in v1.51.27

type CreateGuardrailVersionOutput struct {

	// The unique identifier of the guardrail.
	//
	// GuardrailId is a required field
	GuardrailId *string `locationName:"guardrailId" type:"string" required:"true"`

	// The number of the version of the guardrail.
	//
	// Version is a required field
	Version *string `locationName:"version" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateGuardrailVersionOutput) GoString added in v1.51.27

func (s CreateGuardrailVersionOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateGuardrailVersionOutput) SetGuardrailId added in v1.51.27

SetGuardrailId sets the GuardrailId field's value.

func (*CreateGuardrailVersionOutput) SetVersion added in v1.51.27

SetVersion sets the Version field's value.

func (CreateGuardrailVersionOutput) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateModelCustomizationJobInput

type CreateModelCustomizationJobInput struct {

	// Name of the base model.
	//
	// BaseModelIdentifier is a required field
	BaseModelIdentifier *string `locationName:"baseModelIdentifier" min:"1" type:"string" required:"true"`

	// A unique, case-sensitive identifier to ensure that the API request completes
	// no more than one time. If this token matches a previous request, Amazon Bedrock
	// ignores the request, but does not return an error. For more information,
	// see Ensuring idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`

	// The custom model is encrypted at rest using this key.
	CustomModelKmsKeyId *string `locationName:"customModelKmsKeyId" min:"1" type:"string"`

	// A name for the resulting custom model.
	//
	// CustomModelName is a required field
	CustomModelName *string `locationName:"customModelName" min:"1" type:"string" required:"true"`

	// Tags to attach to the resulting custom model.
	CustomModelTags []*Tag `locationName:"customModelTags" type:"list"`

	// The customization type.
	CustomizationType *string `locationName:"customizationType" type:"string" enum:"CustomizationType"`

	// Parameters related to tuning the model. For details on the format for different
	// models, see Custom model hyperparameters (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html).
	//
	// HyperParameters is a required field
	HyperParameters map[string]*string `locationName:"hyperParameters" type:"map" required:"true"`

	// A name for the fine-tuning job.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// Tags to attach to the job.
	JobTags []*Tag `locationName:"jobTags" type:"list"`

	// S3 location for the output data.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `locationName:"outputDataConfig" type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock
	// can assume to perform tasks on your behalf. For example, during model training,
	// Amazon Bedrock needs your permission to read input data from an S3 bucket,
	// write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock,
	// the caller of this API must have the iam:PassRole permission.
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`

	// Information about the training dataset.
	//
	// TrainingDataConfig is a required field
	TrainingDataConfig *TrainingDataConfig `locationName:"trainingDataConfig" type:"structure" required:"true"`

	// Information about the validation dataset.
	ValidationDataConfig *ValidationDataConfig `locationName:"validationDataConfig" type:"structure"`

	// VPC configuration (optional). Configuration parameters for the private Virtual
	// Private Cloud (VPC) that contains the resources you are using for this job.
	VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateModelCustomizationJobInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateModelCustomizationJobInput) SetBaseModelIdentifier

SetBaseModelIdentifier sets the BaseModelIdentifier field's value.

func (*CreateModelCustomizationJobInput) SetClientRequestToken

SetClientRequestToken sets the ClientRequestToken field's value.

func (*CreateModelCustomizationJobInput) SetCustomModelKmsKeyId

SetCustomModelKmsKeyId sets the CustomModelKmsKeyId field's value.

func (*CreateModelCustomizationJobInput) SetCustomModelName

SetCustomModelName sets the CustomModelName field's value.

func (*CreateModelCustomizationJobInput) SetCustomModelTags

SetCustomModelTags sets the CustomModelTags field's value.

func (*CreateModelCustomizationJobInput) SetCustomizationType added in v1.48.7

SetCustomizationType sets the CustomizationType field's value.

func (*CreateModelCustomizationJobInput) SetHyperParameters

SetHyperParameters sets the HyperParameters field's value.

func (*CreateModelCustomizationJobInput) SetJobName

SetJobName sets the JobName field's value.

func (*CreateModelCustomizationJobInput) SetJobTags

SetJobTags sets the JobTags field's value.

func (*CreateModelCustomizationJobInput) SetOutputDataConfig

SetOutputDataConfig sets the OutputDataConfig field's value.

func (*CreateModelCustomizationJobInput) SetRoleArn

SetRoleArn sets the RoleArn field's value.

func (*CreateModelCustomizationJobInput) SetTrainingDataConfig

SetTrainingDataConfig sets the TrainingDataConfig field's value.

func (*CreateModelCustomizationJobInput) SetValidationDataConfig

SetValidationDataConfig sets the ValidationDataConfig field's value.

func (*CreateModelCustomizationJobInput) SetVpcConfig

SetVpcConfig sets the VpcConfig field's value.

func (CreateModelCustomizationJobInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateModelCustomizationJobInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type CreateModelCustomizationJobOutput

type CreateModelCustomizationJobOutput struct {

	// Amazon Resource Name (ARN) of the fine tuning job
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateModelCustomizationJobOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateModelCustomizationJobOutput) SetJobArn

SetJobArn sets the JobArn field's value.

func (CreateModelCustomizationJobOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateProvisionedModelThroughputInput added in v1.45.20

type CreateProvisionedModelThroughputInput struct {

	// A unique, case-sensitive identifier to ensure that the API request completes
	// no more than one time. If this token matches a previous request, Amazon Bedrock
	// ignores the request, but does not return an error. For more information,
	// see Ensuring idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html)
	// in the Amazon S3 User Guide.
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`

	// The commitment duration requested for the Provisioned Throughput. Billing
	// occurs hourly and is discounted for longer commitment terms. To request a
	// no-commit Provisioned Throughput, omit this field.
	//
	// Custom models support all levels of commitment. To see which base models
	// support no commitment, see Supported regions and models for Provisioned Throughput
	// (https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html)
	// in the Amazon Bedrock User Guide
	CommitmentDuration *string `locationName:"commitmentDuration" type:"string" enum:"CommitmentDuration"`

	// The Amazon Resource Name (ARN) or name of the model to associate with this
	// Provisioned Throughput. For a list of models for which you can purchase Provisioned
	// Throughput, see Amazon Bedrock model IDs for purchasing Provisioned Throughput
	// (https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models)
	// in the Amazon Bedrock User Guide.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" min:"1" type:"string" required:"true"`

	// Number of model units to allocate. A model unit delivers a specific throughput
	// level for the specified model. The throughput level of a model unit specifies
	// the total number of input and output tokens that it can process and generate
	// within a span of one minute. By default, your account has no model units
	// for purchasing Provisioned Throughputs with commitment. You must first visit
	// the Amazon Web Services support center (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase)
	// to request MUs.
	//
	// For model unit quotas, see Provisioned Throughput quotas (https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas)
	// in the Amazon Bedrock User Guide.
	//
	// For more information about what an MU specifies, contact your Amazon Web
	// Services account manager.
	//
	// ModelUnits is a required field
	ModelUnits *int64 `locationName:"modelUnits" min:"1" type:"integer" required:"true"`

	// The name for this Provisioned Throughput.
	//
	// ProvisionedModelName is a required field
	ProvisionedModelName *string `locationName:"provisionedModelName" min:"1" type:"string" required:"true"`

	// Tags to associate with this Provisioned Throughput.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (CreateProvisionedModelThroughputInput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProvisionedModelThroughputInput) SetClientRequestToken added in v1.45.20

SetClientRequestToken sets the ClientRequestToken field's value.

func (*CreateProvisionedModelThroughputInput) SetCommitmentDuration added in v1.45.20

SetCommitmentDuration sets the CommitmentDuration field's value.

func (*CreateProvisionedModelThroughputInput) SetModelId added in v1.45.20

SetModelId sets the ModelId field's value.

func (*CreateProvisionedModelThroughputInput) SetModelUnits added in v1.45.20

SetModelUnits sets the ModelUnits field's value.

func (*CreateProvisionedModelThroughputInput) SetProvisionedModelName added in v1.45.20

SetProvisionedModelName sets the ProvisionedModelName field's value.

func (*CreateProvisionedModelThroughputInput) SetTags added in v1.45.20

SetTags sets the Tags field's value.

func (CreateProvisionedModelThroughputInput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProvisionedModelThroughputInput) Validate added in v1.45.20

Validate inspects the fields of the type to determine if they are valid.

type CreateProvisionedModelThroughputOutput added in v1.45.20

type CreateProvisionedModelThroughputOutput struct {

	// The Amazon Resource Name (ARN) for this Provisioned Throughput.
	//
	// ProvisionedModelArn is a required field
	ProvisionedModelArn *string `locationName:"provisionedModelArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateProvisionedModelThroughputOutput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProvisionedModelThroughputOutput) SetProvisionedModelArn added in v1.45.20

SetProvisionedModelArn sets the ProvisionedModelArn field's value.

func (CreateProvisionedModelThroughputOutput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CustomModelSummary

type CustomModelSummary struct {

	// The base model Amazon Resource Name (ARN).
	//
	// BaseModelArn is a required field
	BaseModelArn *string `locationName:"baseModelArn" min:"20" type:"string" required:"true"`

	// The base model name.
	//
	// BaseModelName is a required field
	BaseModelName *string `locationName:"baseModelName" min:"1" type:"string" required:"true"`

	// Creation time of the model.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Specifies whether to carry out continued pre-training of a model or whether
	// to fine-tune it. For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html).
	CustomizationType *string `locationName:"customizationType" type:"string" enum:"CustomizationType"`

	// The Amazon Resource Name (ARN) of the custom model.
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"`

	// The name of the custom model.
	//
	// ModelName is a required field
	ModelName *string `locationName:"modelName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Summary information for a custom model.

func (CustomModelSummary) GoString

func (s CustomModelSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CustomModelSummary) SetBaseModelArn

func (s *CustomModelSummary) SetBaseModelArn(v string) *CustomModelSummary

SetBaseModelArn sets the BaseModelArn field's value.

func (*CustomModelSummary) SetBaseModelName

func (s *CustomModelSummary) SetBaseModelName(v string) *CustomModelSummary

SetBaseModelName sets the BaseModelName field's value.

func (*CustomModelSummary) SetCreationTime

func (s *CustomModelSummary) SetCreationTime(v time.Time) *CustomModelSummary

SetCreationTime sets the CreationTime field's value.

func (*CustomModelSummary) SetCustomizationType added in v1.48.7

func (s *CustomModelSummary) SetCustomizationType(v string) *CustomModelSummary

SetCustomizationType sets the CustomizationType field's value.

func (*CustomModelSummary) SetModelArn

func (s *CustomModelSummary) SetModelArn(v string) *CustomModelSummary

SetModelArn sets the ModelArn field's value.

func (*CustomModelSummary) SetModelName

func (s *CustomModelSummary) SetModelName(v string) *CustomModelSummary

SetModelName sets the ModelName field's value.

func (CustomModelSummary) String

func (s CustomModelSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteCustomModelInput

type DeleteCustomModelInput struct {

	// Name of the model to delete.
	//
	// ModelIdentifier is a required field
	ModelIdentifier *string `location:"uri" locationName:"modelIdentifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteCustomModelInput) GoString

func (s DeleteCustomModelInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteCustomModelInput) SetModelIdentifier

func (s *DeleteCustomModelInput) SetModelIdentifier(v string) *DeleteCustomModelInput

SetModelIdentifier sets the ModelIdentifier field's value.

func (DeleteCustomModelInput) String

func (s DeleteCustomModelInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteCustomModelInput) Validate

func (s *DeleteCustomModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteCustomModelOutput

type DeleteCustomModelOutput struct {
	// contains filtered or unexported fields
}

func (DeleteCustomModelOutput) GoString

func (s DeleteCustomModelOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteCustomModelOutput) String

func (s DeleteCustomModelOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteGuardrailInput added in v1.51.27

type DeleteGuardrailInput struct {

	// The unique identifier of the guardrail.
	//
	// GuardrailIdentifier is a required field
	GuardrailIdentifier *string `location:"uri" locationName:"guardrailIdentifier" type:"string" required:"true"`

	// The version of the guardrail.
	GuardrailVersion *string `location:"querystring" locationName:"guardrailVersion" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteGuardrailInput) GoString added in v1.51.27

func (s DeleteGuardrailInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteGuardrailInput) SetGuardrailIdentifier added in v1.51.27

func (s *DeleteGuardrailInput) SetGuardrailIdentifier(v string) *DeleteGuardrailInput

SetGuardrailIdentifier sets the GuardrailIdentifier field's value.

func (*DeleteGuardrailInput) SetGuardrailVersion added in v1.51.27

func (s *DeleteGuardrailInput) SetGuardrailVersion(v string) *DeleteGuardrailInput

SetGuardrailVersion sets the GuardrailVersion field's value.

func (DeleteGuardrailInput) String added in v1.51.27

func (s DeleteGuardrailInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteGuardrailInput) Validate added in v1.51.27

func (s *DeleteGuardrailInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteGuardrailOutput added in v1.51.27

type DeleteGuardrailOutput struct {
	// contains filtered or unexported fields
}

func (DeleteGuardrailOutput) GoString added in v1.51.27

func (s DeleteGuardrailOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteGuardrailOutput) String added in v1.51.27

func (s DeleteGuardrailOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteModelInvocationLoggingConfigurationInput

type DeleteModelInvocationLoggingConfigurationInput struct {
	// contains filtered or unexported fields
}

func (DeleteModelInvocationLoggingConfigurationInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteModelInvocationLoggingConfigurationInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteModelInvocationLoggingConfigurationOutput

type DeleteModelInvocationLoggingConfigurationOutput struct {
	// contains filtered or unexported fields
}

func (DeleteModelInvocationLoggingConfigurationOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteModelInvocationLoggingConfigurationOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteProvisionedModelThroughputInput added in v1.45.20

type DeleteProvisionedModelThroughputInput struct {

	// The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
	//
	// ProvisionedModelId is a required field
	ProvisionedModelId *string `location:"uri" locationName:"provisionedModelId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteProvisionedModelThroughputInput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteProvisionedModelThroughputInput) SetProvisionedModelId added in v1.45.20

SetProvisionedModelId sets the ProvisionedModelId field's value.

func (DeleteProvisionedModelThroughputInput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteProvisionedModelThroughputInput) Validate added in v1.45.20

Validate inspects the fields of the type to determine if they are valid.

type DeleteProvisionedModelThroughputOutput added in v1.45.20

type DeleteProvisionedModelThroughputOutput struct {
	// contains filtered or unexported fields
}

func (DeleteProvisionedModelThroughputOutput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteProvisionedModelThroughputOutput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EvaluationBedrockModel added in v1.51.27

type EvaluationBedrockModel struct {

	// Each Amazon Bedrock support different inference parameters that change how
	// the model behaves during inference.
	//
	// InferenceParams is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by EvaluationBedrockModel's
	// String and GoString methods.
	//
	// InferenceParams is a required field
	InferenceParams *string `locationName:"inferenceParams" min:"1" type:"string" required:"true" sensitive:"true"`

	// The ARN of the Amazon Bedrock model specified.
	//
	// ModelIdentifier is a required field
	ModelIdentifier *string `locationName:"modelIdentifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models (https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-prompt-datasets-custom.html).

The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, "temperature":"0.25" key value pair would need to be formatted as \"temperature\":\"0.25\" to successfully accepted in the request.

func (EvaluationBedrockModel) GoString added in v1.51.27

func (s EvaluationBedrockModel) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationBedrockModel) SetInferenceParams added in v1.51.27

func (s *EvaluationBedrockModel) SetInferenceParams(v string) *EvaluationBedrockModel

SetInferenceParams sets the InferenceParams field's value.

func (*EvaluationBedrockModel) SetModelIdentifier added in v1.51.27

func (s *EvaluationBedrockModel) SetModelIdentifier(v string) *EvaluationBedrockModel

SetModelIdentifier sets the ModelIdentifier field's value.

func (EvaluationBedrockModel) String added in v1.51.27

func (s EvaluationBedrockModel) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationBedrockModel) Validate added in v1.51.27

func (s *EvaluationBedrockModel) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationConfig added in v1.51.27

type EvaluationConfig struct {

	// Used to specify an automated model evaluation job. See AutomatedEvaluationConfig
	// to view the required parameters.
	Automated *AutomatedEvaluationConfig `locationName:"automated" type:"structure"`

	// Used to specify a model evaluation job that uses human workers.See HumanEvaluationConfig
	// to view the required parameters.
	Human *HumanEvaluationConfig `locationName:"human" type:"structure"`
	// contains filtered or unexported fields
}

Used to specify either a AutomatedEvaluationConfig or HumanEvaluationConfig object.

func (EvaluationConfig) GoString added in v1.51.27

func (s EvaluationConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationConfig) SetAutomated added in v1.51.27

SetAutomated sets the Automated field's value.

func (*EvaluationConfig) SetHuman added in v1.51.27

SetHuman sets the Human field's value.

func (EvaluationConfig) String added in v1.51.27

func (s EvaluationConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationConfig) Validate added in v1.51.27

func (s *EvaluationConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationDataset added in v1.51.27

type EvaluationDataset struct {

	// For custom prompt datasets, you must specify the location in Amazon S3 where
	// the prompt dataset is saved.
	DatasetLocation *EvaluationDatasetLocation `locationName:"datasetLocation" type:"structure"`

	// Used to specify supported built-in prompt datasets. Valid values are Builtin.Bold,
	// Builtin.BoolQ, Builtin.NaturalQuestions, Builtin.Gigaword, Builtin.RealToxicityPrompts,
	// Builtin.TriviaQa, Builtin.T-Rex, Builtin.WomensEcommerceClothingReviews and
	// Builtin.Wikitext2.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by EvaluationDataset's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`
	// contains filtered or unexported fields
}

Used to specify the name of a built-in prompt dataset and optionally, the Amazon S3 bucket where a custom prompt dataset is saved.

func (EvaluationDataset) GoString added in v1.51.27

func (s EvaluationDataset) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDataset) SetDatasetLocation added in v1.51.27

SetDatasetLocation sets the DatasetLocation field's value.

func (*EvaluationDataset) SetName added in v1.51.27

SetName sets the Name field's value.

func (EvaluationDataset) String added in v1.51.27

func (s EvaluationDataset) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDataset) Validate added in v1.51.27

func (s *EvaluationDataset) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationDatasetLocation added in v1.51.27

type EvaluationDatasetLocation struct {

	// The S3 URI of the S3 bucket specified in the job.
	S3Uri *string `locationName:"s3Uri" min:"1" type:"string"`
	// contains filtered or unexported fields
}

The location in Amazon S3 where your prompt dataset is stored.

func (EvaluationDatasetLocation) GoString added in v1.51.27

func (s EvaluationDatasetLocation) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDatasetLocation) SetS3Uri added in v1.51.27

SetS3Uri sets the S3Uri field's value.

func (EvaluationDatasetLocation) String added in v1.51.27

func (s EvaluationDatasetLocation) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDatasetLocation) Validate added in v1.51.27

func (s *EvaluationDatasetLocation) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationDatasetMetricConfig added in v1.51.27

type EvaluationDatasetMetricConfig struct {

	// Specifies the prompt dataset.
	//
	// Dataset is a required field
	Dataset *EvaluationDataset `locationName:"dataset" type:"structure" required:"true"`

	// The names of the metrics used. For automated model evaluation jobs valid
	// values are "Builtin.Accuracy", "Builtin.Robustness", and "Builtin.Toxicity".
	// In human-based model evaluation jobs the array of strings must match the
	// name parameter specified in HumanEvaluationCustomMetric.
	//
	// MetricNames is a required field
	MetricNames []*string `locationName:"metricNames" min:"1" type:"list" required:"true"`

	// The task type you want the model to carry out.
	//
	// TaskType is a required field
	TaskType *string `locationName:"taskType" min:"1" type:"string" required:"true" enum:"EvaluationTaskType"`
	// contains filtered or unexported fields
}

Defines the built-in prompt datasets, built-in metric names and custom metric names, and the task type.

func (EvaluationDatasetMetricConfig) GoString added in v1.51.27

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDatasetMetricConfig) SetDataset added in v1.51.27

SetDataset sets the Dataset field's value.

func (*EvaluationDatasetMetricConfig) SetMetricNames added in v1.51.27

SetMetricNames sets the MetricNames field's value.

func (*EvaluationDatasetMetricConfig) SetTaskType added in v1.51.27

SetTaskType sets the TaskType field's value.

func (EvaluationDatasetMetricConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationDatasetMetricConfig) Validate added in v1.51.27

func (s *EvaluationDatasetMetricConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationInferenceConfig added in v1.51.27

type EvaluationInferenceConfig struct {

	// Used to specify the models.
	Models []*EvaluationModelConfig `locationName:"models" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Used to define the models you want used in your model evaluation job. Automated model evaluation jobs support only a single model. In a human-based model evaluation job, your annotator can compare the responses for up to two different models.

func (EvaluationInferenceConfig) GoString added in v1.51.27

func (s EvaluationInferenceConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationInferenceConfig) SetModels added in v1.51.27

SetModels sets the Models field's value.

func (EvaluationInferenceConfig) String added in v1.51.27

func (s EvaluationInferenceConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationInferenceConfig) Validate added in v1.51.27

func (s *EvaluationInferenceConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationModelConfig added in v1.51.27

type EvaluationModelConfig struct {

	// Defines the Amazon Bedrock model and inference parameters you want used.
	BedrockModel *EvaluationBedrockModel `locationName:"bedrockModel" type:"structure"`
	// contains filtered or unexported fields
}

Defines the models used in the model evaluation job.

func (EvaluationModelConfig) GoString added in v1.51.27

func (s EvaluationModelConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationModelConfig) SetBedrockModel added in v1.51.27

SetBedrockModel sets the BedrockModel field's value.

func (EvaluationModelConfig) String added in v1.51.27

func (s EvaluationModelConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationModelConfig) Validate added in v1.51.27

func (s *EvaluationModelConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationOutputDataConfig added in v1.51.27

type EvaluationOutputDataConfig struct {

	// The Amazon S3 URI where the results of model evaluation job are saved.
	//
	// S3Uri is a required field
	S3Uri *string `locationName:"s3Uri" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The Amazon S3 location where the results of your model evaluation job are saved.

func (EvaluationOutputDataConfig) GoString added in v1.51.27

func (s EvaluationOutputDataConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationOutputDataConfig) SetS3Uri added in v1.51.27

SetS3Uri sets the S3Uri field's value.

func (EvaluationOutputDataConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationOutputDataConfig) Validate added in v1.51.27

func (s *EvaluationOutputDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EvaluationSummary added in v1.51.27

type EvaluationSummary struct {

	// When the model evaluation job was created.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// What task type was used in the model evaluation job.
	//
	// EvaluationTaskTypes is a required field
	EvaluationTaskTypes []*string `locationName:"evaluationTaskTypes" min:"1" type:"list" required:"true" enum:"EvaluationTaskType"`

	// The Amazon Resource Name (ARN) of the model evaluation job.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`

	// The name of the model evaluation job.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// The type, either human or automatic, of model evaluation job.
	//
	// JobType is a required field
	JobType *string `locationName:"jobType" type:"string" required:"true" enum:"EvaluationJobType"`

	// The Amazon Resource Names (ARNs) of the model(s) used in the model evaluation
	// job.
	//
	// ModelIdentifiers is a required field
	ModelIdentifiers []*string `locationName:"modelIdentifiers" min:"1" type:"list" required:"true"`

	// The current status of the model evaluation job.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"EvaluationJobStatus"`
	// contains filtered or unexported fields
}

A summary of the model evaluation job.

func (EvaluationSummary) GoString added in v1.51.27

func (s EvaluationSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EvaluationSummary) SetCreationTime added in v1.51.27

func (s *EvaluationSummary) SetCreationTime(v time.Time) *EvaluationSummary

SetCreationTime sets the CreationTime field's value.

func (*EvaluationSummary) SetEvaluationTaskTypes added in v1.51.27

func (s *EvaluationSummary) SetEvaluationTaskTypes(v []*string) *EvaluationSummary

SetEvaluationTaskTypes sets the EvaluationTaskTypes field's value.

func (*EvaluationSummary) SetJobArn added in v1.51.27

func (s *EvaluationSummary) SetJobArn(v string) *EvaluationSummary

SetJobArn sets the JobArn field's value.

func (*EvaluationSummary) SetJobName added in v1.51.27

func (s *EvaluationSummary) SetJobName(v string) *EvaluationSummary

SetJobName sets the JobName field's value.

func (*EvaluationSummary) SetJobType added in v1.51.27

func (s *EvaluationSummary) SetJobType(v string) *EvaluationSummary

SetJobType sets the JobType field's value.

func (*EvaluationSummary) SetModelIdentifiers added in v1.51.27

func (s *EvaluationSummary) SetModelIdentifiers(v []*string) *EvaluationSummary

SetModelIdentifiers sets the ModelIdentifiers field's value.

func (*EvaluationSummary) SetStatus added in v1.51.27

func (s *EvaluationSummary) SetStatus(v string) *EvaluationSummary

SetStatus sets the Status field's value.

func (EvaluationSummary) String added in v1.51.27

func (s EvaluationSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type FoundationModelDetails

type FoundationModelDetails struct {

	// The customization that the model supports.
	CustomizationsSupported []*string `locationName:"customizationsSupported" type:"list" enum:"ModelCustomization"`

	// The inference types that the model supports.
	InferenceTypesSupported []*string `locationName:"inferenceTypesSupported" type:"list" enum:"InferenceType"`

	// The input modalities that the model supports.
	InputModalities []*string `locationName:"inputModalities" type:"list" enum:"ModelModality"`

	// The model Amazon Resource Name (ARN).
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" type:"string" required:"true"`

	// The model identifier.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" type:"string" required:"true"`

	// Contains details about whether a model version is available or deprecated
	ModelLifecycle *FoundationModelLifecycle `locationName:"modelLifecycle" type:"structure"`

	// The model name.
	ModelName *string `locationName:"modelName" min:"1" type:"string"`

	// The output modalities that the model supports.
	OutputModalities []*string `locationName:"outputModalities" type:"list" enum:"ModelModality"`

	// The model's provider name.
	ProviderName *string `locationName:"providerName" min:"1" type:"string"`

	// Indicates whether the model supports streaming.
	ResponseStreamingSupported *bool `locationName:"responseStreamingSupported" type:"boolean"`
	// contains filtered or unexported fields
}

Information about a foundation model.

func (FoundationModelDetails) GoString

func (s FoundationModelDetails) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*FoundationModelDetails) SetCustomizationsSupported

func (s *FoundationModelDetails) SetCustomizationsSupported(v []*string) *FoundationModelDetails

SetCustomizationsSupported sets the CustomizationsSupported field's value.

func (*FoundationModelDetails) SetInferenceTypesSupported

func (s *FoundationModelDetails) SetInferenceTypesSupported(v []*string) *FoundationModelDetails

SetInferenceTypesSupported sets the InferenceTypesSupported field's value.

func (*FoundationModelDetails) SetInputModalities

func (s *FoundationModelDetails) SetInputModalities(v []*string) *FoundationModelDetails

SetInputModalities sets the InputModalities field's value.

func (*FoundationModelDetails) SetModelArn

SetModelArn sets the ModelArn field's value.

func (*FoundationModelDetails) SetModelId

SetModelId sets the ModelId field's value.

func (*FoundationModelDetails) SetModelLifecycle added in v1.48.7

SetModelLifecycle sets the ModelLifecycle field's value.

func (*FoundationModelDetails) SetModelName

SetModelName sets the ModelName field's value.

func (*FoundationModelDetails) SetOutputModalities

func (s *FoundationModelDetails) SetOutputModalities(v []*string) *FoundationModelDetails

SetOutputModalities sets the OutputModalities field's value.

func (*FoundationModelDetails) SetProviderName

func (s *FoundationModelDetails) SetProviderName(v string) *FoundationModelDetails

SetProviderName sets the ProviderName field's value.

func (*FoundationModelDetails) SetResponseStreamingSupported

func (s *FoundationModelDetails) SetResponseStreamingSupported(v bool) *FoundationModelDetails

SetResponseStreamingSupported sets the ResponseStreamingSupported field's value.

func (FoundationModelDetails) String

func (s FoundationModelDetails) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type FoundationModelLifecycle added in v1.48.7

type FoundationModelLifecycle struct {

	// Specifies whether a model version is available (ACTIVE) or deprecated (LEGACY.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"FoundationModelLifecycleStatus"`
	// contains filtered or unexported fields
}

Details about whether a model version is available or deprecated.

func (FoundationModelLifecycle) GoString added in v1.48.7

func (s FoundationModelLifecycle) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*FoundationModelLifecycle) SetStatus added in v1.48.7

SetStatus sets the Status field's value.

func (FoundationModelLifecycle) String added in v1.48.7

func (s FoundationModelLifecycle) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type FoundationModelSummary

type FoundationModelSummary struct {

	// Whether the model supports fine-tuning or continual pre-training.
	CustomizationsSupported []*string `locationName:"customizationsSupported" type:"list" enum:"ModelCustomization"`

	// The inference types that the model supports.
	InferenceTypesSupported []*string `locationName:"inferenceTypesSupported" type:"list" enum:"InferenceType"`

	// The input modalities that the model supports.
	InputModalities []*string `locationName:"inputModalities" type:"list" enum:"ModelModality"`

	// The Amazon Resource Name (ARN) of the foundation model.
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" type:"string" required:"true"`

	// The model ID of the foundation model.
	//
	// ModelId is a required field
	ModelId *string `locationName:"modelId" type:"string" required:"true"`

	// Contains details about whether a model version is available or deprecated.
	ModelLifecycle *FoundationModelLifecycle `locationName:"modelLifecycle" type:"structure"`

	// The name of the model.
	ModelName *string `locationName:"modelName" min:"1" type:"string"`

	// The output modalities that the model supports.
	OutputModalities []*string `locationName:"outputModalities" type:"list" enum:"ModelModality"`

	// The model's provider name.
	ProviderName *string `locationName:"providerName" min:"1" type:"string"`

	// Indicates whether the model supports streaming.
	ResponseStreamingSupported *bool `locationName:"responseStreamingSupported" type:"boolean"`
	// contains filtered or unexported fields
}

Summary information for a foundation model.

func (FoundationModelSummary) GoString

func (s FoundationModelSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*FoundationModelSummary) SetCustomizationsSupported

func (s *FoundationModelSummary) SetCustomizationsSupported(v []*string) *FoundationModelSummary

SetCustomizationsSupported sets the CustomizationsSupported field's value.

func (*FoundationModelSummary) SetInferenceTypesSupported

func (s *FoundationModelSummary) SetInferenceTypesSupported(v []*string) *FoundationModelSummary

SetInferenceTypesSupported sets the InferenceTypesSupported field's value.

func (*FoundationModelSummary) SetInputModalities

func (s *FoundationModelSummary) SetInputModalities(v []*string) *FoundationModelSummary

SetInputModalities sets the InputModalities field's value.

func (*FoundationModelSummary) SetModelArn

SetModelArn sets the ModelArn field's value.

func (*FoundationModelSummary) SetModelId

SetModelId sets the ModelId field's value.

func (*FoundationModelSummary) SetModelLifecycle added in v1.48.7

SetModelLifecycle sets the ModelLifecycle field's value.

func (*FoundationModelSummary) SetModelName

SetModelName sets the ModelName field's value.

func (*FoundationModelSummary) SetOutputModalities

func (s *FoundationModelSummary) SetOutputModalities(v []*string) *FoundationModelSummary

SetOutputModalities sets the OutputModalities field's value.

func (*FoundationModelSummary) SetProviderName

func (s *FoundationModelSummary) SetProviderName(v string) *FoundationModelSummary

SetProviderName sets the ProviderName field's value.

func (*FoundationModelSummary) SetResponseStreamingSupported

func (s *FoundationModelSummary) SetResponseStreamingSupported(v bool) *FoundationModelSummary

SetResponseStreamingSupported sets the ResponseStreamingSupported field's value.

func (FoundationModelSummary) String

func (s FoundationModelSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetCustomModelInput

type GetCustomModelInput struct {

	// Name or Amazon Resource Name (ARN) of the custom model.
	//
	// ModelIdentifier is a required field
	ModelIdentifier *string `location:"uri" locationName:"modelIdentifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetCustomModelInput) GoString

func (s GetCustomModelInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCustomModelInput) SetModelIdentifier

func (s *GetCustomModelInput) SetModelIdentifier(v string) *GetCustomModelInput

SetModelIdentifier sets the ModelIdentifier field's value.

func (GetCustomModelInput) String

func (s GetCustomModelInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCustomModelInput) Validate

func (s *GetCustomModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetCustomModelOutput

type GetCustomModelOutput struct {

	// Amazon Resource Name (ARN) of the base model.
	//
	// BaseModelArn is a required field
	BaseModelArn *string `locationName:"baseModelArn" min:"20" type:"string" required:"true"`

	// Creation time of the model.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The type of model customization.
	CustomizationType *string `locationName:"customizationType" type:"string" enum:"CustomizationType"`

	// Hyperparameter values associated with this model. For details on the format
	// for different models, see Custom model hyperparameters (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html).
	HyperParameters map[string]*string `locationName:"hyperParameters" type:"map"`

	// Job Amazon Resource Name (ARN) associated with this model.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`

	// Job name associated with this model.
	JobName *string `locationName:"jobName" min:"1" type:"string"`

	// Amazon Resource Name (ARN) associated with this model.
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"`

	// The custom model is encrypted at rest using this key.
	ModelKmsKeyArn *string `locationName:"modelKmsKeyArn" min:"1" type:"string"`

	// Model name associated with this model.
	//
	// ModelName is a required field
	ModelName *string `locationName:"modelName" min:"1" type:"string" required:"true"`

	// Output data configuration associated with this custom model.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `locationName:"outputDataConfig" type:"structure" required:"true"`

	// Contains information about the training dataset.
	//
	// TrainingDataConfig is a required field
	TrainingDataConfig *TrainingDataConfig `locationName:"trainingDataConfig" type:"structure" required:"true"`

	// Contains training metrics from the job creation.
	TrainingMetrics *TrainingMetrics `locationName:"trainingMetrics" type:"structure"`

	// Contains information about the validation dataset.
	ValidationDataConfig *ValidationDataConfig `locationName:"validationDataConfig" type:"structure"`

	// The validation metrics from the job creation.
	ValidationMetrics []*ValidatorMetric `locationName:"validationMetrics" type:"list"`
	// contains filtered or unexported fields
}

func (GetCustomModelOutput) GoString

func (s GetCustomModelOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCustomModelOutput) SetBaseModelArn

func (s *GetCustomModelOutput) SetBaseModelArn(v string) *GetCustomModelOutput

SetBaseModelArn sets the BaseModelArn field's value.

func (*GetCustomModelOutput) SetCreationTime

func (s *GetCustomModelOutput) SetCreationTime(v time.Time) *GetCustomModelOutput

SetCreationTime sets the CreationTime field's value.

func (*GetCustomModelOutput) SetCustomizationType added in v1.48.7

func (s *GetCustomModelOutput) SetCustomizationType(v string) *GetCustomModelOutput

SetCustomizationType sets the CustomizationType field's value.

func (*GetCustomModelOutput) SetHyperParameters

func (s *GetCustomModelOutput) SetHyperParameters(v map[string]*string) *GetCustomModelOutput

SetHyperParameters sets the HyperParameters field's value.

func (*GetCustomModelOutput) SetJobArn

SetJobArn sets the JobArn field's value.

func (*GetCustomModelOutput) SetJobName

SetJobName sets the JobName field's value.

func (*GetCustomModelOutput) SetModelArn

SetModelArn sets the ModelArn field's value.

func (*GetCustomModelOutput) SetModelKmsKeyArn

func (s *GetCustomModelOutput) SetModelKmsKeyArn(v string) *GetCustomModelOutput

SetModelKmsKeyArn sets the ModelKmsKeyArn field's value.

func (*GetCustomModelOutput) SetModelName

func (s *GetCustomModelOutput) SetModelName(v string) *GetCustomModelOutput

SetModelName sets the ModelName field's value.

func (*GetCustomModelOutput) SetOutputDataConfig

func (s *GetCustomModelOutput) SetOutputDataConfig(v *OutputDataConfig) *GetCustomModelOutput

SetOutputDataConfig sets the OutputDataConfig field's value.

func (*GetCustomModelOutput) SetTrainingDataConfig

func (s *GetCustomModelOutput) SetTrainingDataConfig(v *TrainingDataConfig) *GetCustomModelOutput

SetTrainingDataConfig sets the TrainingDataConfig field's value.

func (*GetCustomModelOutput) SetTrainingMetrics

func (s *GetCustomModelOutput) SetTrainingMetrics(v *TrainingMetrics) *GetCustomModelOutput

SetTrainingMetrics sets the TrainingMetrics field's value.

func (*GetCustomModelOutput) SetValidationDataConfig

func (s *GetCustomModelOutput) SetValidationDataConfig(v *ValidationDataConfig) *GetCustomModelOutput

SetValidationDataConfig sets the ValidationDataConfig field's value.

func (*GetCustomModelOutput) SetValidationMetrics

func (s *GetCustomModelOutput) SetValidationMetrics(v []*ValidatorMetric) *GetCustomModelOutput

SetValidationMetrics sets the ValidationMetrics field's value.

func (GetCustomModelOutput) String

func (s GetCustomModelOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetEvaluationJobInput added in v1.51.27

type GetEvaluationJobInput struct {

	// The Amazon Resource Name (ARN) of the model evaluation job.
	//
	// JobIdentifier is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetEvaluationJobInput's
	// String and GoString methods.
	//
	// JobIdentifier is a required field
	JobIdentifier *string `location:"uri" locationName:"jobIdentifier" type:"string" required:"true" sensitive:"true"`
	// contains filtered or unexported fields
}

func (GetEvaluationJobInput) GoString added in v1.51.27

func (s GetEvaluationJobInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetEvaluationJobInput) SetJobIdentifier added in v1.51.27

func (s *GetEvaluationJobInput) SetJobIdentifier(v string) *GetEvaluationJobInput

SetJobIdentifier sets the JobIdentifier field's value.

func (GetEvaluationJobInput) String added in v1.51.27

func (s GetEvaluationJobInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetEvaluationJobInput) Validate added in v1.51.27

func (s *GetEvaluationJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetEvaluationJobOutput added in v1.51.27

type GetEvaluationJobOutput struct {

	// When the model evaluation job was created.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The Amazon Resource Name (ARN) of the customer managed key specified when
	// the model evaluation job was created.
	CustomerEncryptionKeyId *string `locationName:"customerEncryptionKeyId" min:"1" type:"string"`

	// Contains details about the type of model evaluation job, the metrics used,
	// the task type selected, the datasets used, and any custom metrics you defined.
	//
	// EvaluationConfig is a required field
	EvaluationConfig *EvaluationConfig `locationName:"evaluationConfig" type:"structure" required:"true"`

	// An array of strings the specify why the model evaluation job has failed.
	FailureMessages []*string `locationName:"failureMessages" type:"list"`

	// Details about the models you specified in your model evaluation job.
	//
	// InferenceConfig is a required field
	InferenceConfig *EvaluationInferenceConfig `locationName:"inferenceConfig" type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of the model evaluation job.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`

	// The description of the model evaluation job.
	//
	// JobDescription is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetEvaluationJobOutput's
	// String and GoString methods.
	JobDescription *string `locationName:"jobDescription" min:"1" type:"string" sensitive:"true"`

	// The name of the model evaluation job.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// The type of model evaluation job.
	//
	// JobType is a required field
	JobType *string `locationName:"jobType" type:"string" required:"true" enum:"EvaluationJobType"`

	// When the model evaluation job was last modified.
	LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"`

	// Amazon S3 location for where output data is saved.
	//
	// OutputDataConfig is a required field
	OutputDataConfig *EvaluationOutputDataConfig `locationName:"outputDataConfig" type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of the IAM service role used in the model
	// evaluation job.
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`

	// The status of the model evaluation job.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"EvaluationJobStatus"`
	// contains filtered or unexported fields
}

func (GetEvaluationJobOutput) GoString added in v1.51.27

func (s GetEvaluationJobOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetEvaluationJobOutput) SetCreationTime added in v1.51.27

func (s *GetEvaluationJobOutput) SetCreationTime(v time.Time) *GetEvaluationJobOutput

SetCreationTime sets the CreationTime field's value.

func (*GetEvaluationJobOutput) SetCustomerEncryptionKeyId added in v1.51.27

func (s *GetEvaluationJobOutput) SetCustomerEncryptionKeyId(v string) *GetEvaluationJobOutput

SetCustomerEncryptionKeyId sets the CustomerEncryptionKeyId field's value.

func (*GetEvaluationJobOutput) SetEvaluationConfig added in v1.51.27

SetEvaluationConfig sets the EvaluationConfig field's value.

func (*GetEvaluationJobOutput) SetFailureMessages added in v1.51.27

func (s *GetEvaluationJobOutput) SetFailureMessages(v []*string) *GetEvaluationJobOutput

SetFailureMessages sets the FailureMessages field's value.

func (*GetEvaluationJobOutput) SetInferenceConfig added in v1.51.27

SetInferenceConfig sets the InferenceConfig field's value.

func (*GetEvaluationJobOutput) SetJobArn added in v1.51.27

SetJobArn sets the JobArn field's value.

func (*GetEvaluationJobOutput) SetJobDescription added in v1.51.27

func (s *GetEvaluationJobOutput) SetJobDescription(v string) *GetEvaluationJobOutput

SetJobDescription sets the JobDescription field's value.

func (*GetEvaluationJobOutput) SetJobName added in v1.51.27

SetJobName sets the JobName field's value.

func (*GetEvaluationJobOutput) SetJobType added in v1.51.27

SetJobType sets the JobType field's value.

func (*GetEvaluationJobOutput) SetLastModifiedTime added in v1.51.27

func (s *GetEvaluationJobOutput) SetLastModifiedTime(v time.Time) *GetEvaluationJobOutput

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*GetEvaluationJobOutput) SetOutputDataConfig added in v1.51.27

SetOutputDataConfig sets the OutputDataConfig field's value.

func (*GetEvaluationJobOutput) SetRoleArn added in v1.51.27

SetRoleArn sets the RoleArn field's value.

func (*GetEvaluationJobOutput) SetStatus added in v1.51.27

SetStatus sets the Status field's value.

func (GetEvaluationJobOutput) String added in v1.51.27

func (s GetEvaluationJobOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetFoundationModelInput

type GetFoundationModelInput struct {

	// The model identifier.
	//
	// ModelIdentifier is a required field
	ModelIdentifier *string `location:"uri" locationName:"modelIdentifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetFoundationModelInput) GoString

func (s GetFoundationModelInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetFoundationModelInput) SetModelIdentifier

func (s *GetFoundationModelInput) SetModelIdentifier(v string) *GetFoundationModelInput

SetModelIdentifier sets the ModelIdentifier field's value.

func (GetFoundationModelInput) String

func (s GetFoundationModelInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetFoundationModelInput) Validate

func (s *GetFoundationModelInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetFoundationModelOutput

type GetFoundationModelOutput struct {

	// Information about the foundation model.
	ModelDetails *FoundationModelDetails `locationName:"modelDetails" type:"structure"`
	// contains filtered or unexported fields
}

func (GetFoundationModelOutput) GoString

func (s GetFoundationModelOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetFoundationModelOutput) SetModelDetails

SetModelDetails sets the ModelDetails field's value.

func (GetFoundationModelOutput) String

func (s GetFoundationModelOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetGuardrailInput added in v1.51.27

type GetGuardrailInput struct {

	// The unique identifier of the guardrail for which to get details.
	//
	// GuardrailIdentifier is a required field
	GuardrailIdentifier *string `location:"uri" locationName:"guardrailIdentifier" type:"string" required:"true"`

	// The version of the guardrail for which to get details. If you don't specify
	// a version, the response returns details for the DRAFT version.
	GuardrailVersion *string `location:"querystring" locationName:"guardrailVersion" type:"string"`
	// contains filtered or unexported fields
}

func (GetGuardrailInput) GoString added in v1.51.27

func (s GetGuardrailInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetGuardrailInput) SetGuardrailIdentifier added in v1.51.27

func (s *GetGuardrailInput) SetGuardrailIdentifier(v string) *GetGuardrailInput

SetGuardrailIdentifier sets the GuardrailIdentifier field's value.

func (*GetGuardrailInput) SetGuardrailVersion added in v1.51.27

func (s *GetGuardrailInput) SetGuardrailVersion(v string) *GetGuardrailInput

SetGuardrailVersion sets the GuardrailVersion field's value.

func (GetGuardrailInput) String added in v1.51.27

func (s GetGuardrailInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetGuardrailInput) Validate added in v1.51.27

func (s *GetGuardrailInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetGuardrailOutput added in v1.51.27

type GetGuardrailOutput struct {

	// The message that the guardrail returns when it blocks a prompt.
	//
	// BlockedInputMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetGuardrailOutput's
	// String and GoString methods.
	//
	// BlockedInputMessaging is a required field
	BlockedInputMessaging *string `locationName:"blockedInputMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// The message that the guardrail returns when it blocks a model response.
	//
	// BlockedOutputsMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetGuardrailOutput's
	// String and GoString methods.
	//
	// BlockedOutputsMessaging is a required field
	BlockedOutputsMessaging *string `locationName:"blockedOutputsMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// The content policy that was configured for the guardrail.
	ContentPolicy *GuardrailContentPolicy `locationName:"contentPolicy" type:"structure"`

	// The date and time at which the guardrail was created.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The description of the guardrail.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetGuardrailOutput's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// Appears if the status of the guardrail is FAILED. A list of recommendations
	// to carry out before retrying the request.
	FailureRecommendations []*string `locationName:"failureRecommendations" type:"list"`

	// The ARN of the guardrail that was created.
	//
	// GuardrailArn is a required field
	GuardrailArn *string `locationName:"guardrailArn" type:"string" required:"true"`

	// The unique identifier of the guardrail.
	//
	// GuardrailId is a required field
	GuardrailId *string `locationName:"guardrailId" type:"string" required:"true"`

	// The ARN of the KMS key that encrypts the guardrail.
	KmsKeyArn *string `locationName:"kmsKeyArn" min:"1" type:"string"`

	// The name of the guardrail.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetGuardrailOutput's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// The sensitive information policy that was configured for the guardrail.
	SensitiveInformationPolicy *GuardrailSensitiveInformationPolicy `locationName:"sensitiveInformationPolicy" type:"structure"`

	// The status of the guardrail.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"GuardrailStatus"`

	// Appears if the status is FAILED. A list of reasons for why the guardrail
	// failed to be created, updated, versioned, or deleted.
	StatusReasons []*string `locationName:"statusReasons" type:"list"`

	// The topic policy that was configured for the guardrail.
	TopicPolicy *GuardrailTopicPolicy `locationName:"topicPolicy" type:"structure"`

	// The date and time at which the guardrail was updated.
	//
	// UpdatedAt is a required field
	UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The version of the guardrail.
	//
	// Version is a required field
	Version *string `locationName:"version" type:"string" required:"true"`

	// The word policy that was configured for the guardrail.
	WordPolicy *GuardrailWordPolicy `locationName:"wordPolicy" type:"structure"`
	// contains filtered or unexported fields
}

func (GetGuardrailOutput) GoString added in v1.51.27

func (s GetGuardrailOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetGuardrailOutput) SetBlockedInputMessaging added in v1.51.27

func (s *GetGuardrailOutput) SetBlockedInputMessaging(v string) *GetGuardrailOutput

SetBlockedInputMessaging sets the BlockedInputMessaging field's value.

func (*GetGuardrailOutput) SetBlockedOutputsMessaging added in v1.51.27

func (s *GetGuardrailOutput) SetBlockedOutputsMessaging(v string) *GetGuardrailOutput

SetBlockedOutputsMessaging sets the BlockedOutputsMessaging field's value.

func (*GetGuardrailOutput) SetContentPolicy added in v1.51.27

SetContentPolicy sets the ContentPolicy field's value.

func (*GetGuardrailOutput) SetCreatedAt added in v1.51.27

func (s *GetGuardrailOutput) SetCreatedAt(v time.Time) *GetGuardrailOutput

SetCreatedAt sets the CreatedAt field's value.

func (*GetGuardrailOutput) SetDescription added in v1.51.27

func (s *GetGuardrailOutput) SetDescription(v string) *GetGuardrailOutput

SetDescription sets the Description field's value.

func (*GetGuardrailOutput) SetFailureRecommendations added in v1.51.27

func (s *GetGuardrailOutput) SetFailureRecommendations(v []*string) *GetGuardrailOutput

SetFailureRecommendations sets the FailureRecommendations field's value.

func (*GetGuardrailOutput) SetGuardrailArn added in v1.51.27

func (s *GetGuardrailOutput) SetGuardrailArn(v string) *GetGuardrailOutput

SetGuardrailArn sets the GuardrailArn field's value.

func (*GetGuardrailOutput) SetGuardrailId added in v1.51.27

func (s *GetGuardrailOutput) SetGuardrailId(v string) *GetGuardrailOutput

SetGuardrailId sets the GuardrailId field's value.

func (*GetGuardrailOutput) SetKmsKeyArn added in v1.51.27

func (s *GetGuardrailOutput) SetKmsKeyArn(v string) *GetGuardrailOutput

SetKmsKeyArn sets the KmsKeyArn field's value.

func (*GetGuardrailOutput) SetName added in v1.51.27

SetName sets the Name field's value.

func (*GetGuardrailOutput) SetSensitiveInformationPolicy added in v1.51.27

func (s *GetGuardrailOutput) SetSensitiveInformationPolicy(v *GuardrailSensitiveInformationPolicy) *GetGuardrailOutput

SetSensitiveInformationPolicy sets the SensitiveInformationPolicy field's value.

func (*GetGuardrailOutput) SetStatus added in v1.51.27

func (s *GetGuardrailOutput) SetStatus(v string) *GetGuardrailOutput

SetStatus sets the Status field's value.

func (*GetGuardrailOutput) SetStatusReasons added in v1.51.27

func (s *GetGuardrailOutput) SetStatusReasons(v []*string) *GetGuardrailOutput

SetStatusReasons sets the StatusReasons field's value.

func (*GetGuardrailOutput) SetTopicPolicy added in v1.51.27

SetTopicPolicy sets the TopicPolicy field's value.

func (*GetGuardrailOutput) SetUpdatedAt added in v1.51.27

func (s *GetGuardrailOutput) SetUpdatedAt(v time.Time) *GetGuardrailOutput

SetUpdatedAt sets the UpdatedAt field's value.

func (*GetGuardrailOutput) SetVersion added in v1.51.27

func (s *GetGuardrailOutput) SetVersion(v string) *GetGuardrailOutput

SetVersion sets the Version field's value.

func (*GetGuardrailOutput) SetWordPolicy added in v1.51.27

SetWordPolicy sets the WordPolicy field's value.

func (GetGuardrailOutput) String added in v1.51.27

func (s GetGuardrailOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetModelCustomizationJobInput

type GetModelCustomizationJobInput struct {

	// Identifier for the customization job.
	//
	// JobIdentifier is a required field
	JobIdentifier *string `location:"uri" locationName:"jobIdentifier" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetModelCustomizationJobInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetModelCustomizationJobInput) SetJobIdentifier

SetJobIdentifier sets the JobIdentifier field's value.

func (GetModelCustomizationJobInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetModelCustomizationJobInput) Validate

func (s *GetModelCustomizationJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetModelCustomizationJobOutput

type GetModelCustomizationJobOutput struct {

	// Amazon Resource Name (ARN) of the base model.
	//
	// BaseModelArn is a required field
	BaseModelArn *string `locationName:"baseModelArn" type:"string" required:"true"`

	// The token that you specified in the CreateCustomizationJob request.
	ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`

	// Time that the resource was created.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The type of model customization.
	CustomizationType *string `locationName:"customizationType" type:"string" enum:"CustomizationType"`

	// Time that the resource transitioned to terminal state.
	EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`

	// Information about why the job failed.
	FailureMessage *string `locationName:"failureMessage" type:"string"`

	// The hyperparameter values for the job. For details on the format for different
	// models, see Custom model hyperparameters (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html).
	//
	// HyperParameters is a required field
	HyperParameters map[string]*string `locationName:"hyperParameters" type:"map" required:"true"`

	// The Amazon Resource Name (ARN) of the customization job.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`

	// The name of the customization job.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// Time that the resource was last modified.
	LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"`

	// Output data configuration
	//
	// OutputDataConfig is a required field
	OutputDataConfig *OutputDataConfig `locationName:"outputDataConfig" type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of the output model.
	OutputModelArn *string `locationName:"outputModelArn" min:"20" type:"string"`

	// The custom model is encrypted at rest using this key.
	OutputModelKmsKeyArn *string `locationName:"outputModelKmsKeyArn" min:"1" type:"string"`

	// The name of the output model.
	//
	// OutputModelName is a required field
	OutputModelName *string `locationName:"outputModelName" min:"1" type:"string" required:"true"`

	// The Amazon Resource Name (ARN) of the IAM role.
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`

	// The status of the job. A successful job transitions from in-progress to completed
	// when the output model is ready to use. If the job failed, the failure message
	// contains information about why the job failed.
	Status *string `locationName:"status" type:"string" enum:"ModelCustomizationJobStatus"`

	// Contains information about the training dataset.
	//
	// TrainingDataConfig is a required field
	TrainingDataConfig *TrainingDataConfig `locationName:"trainingDataConfig" type:"structure" required:"true"`

	// Contains training metrics from the job creation.
	TrainingMetrics *TrainingMetrics `locationName:"trainingMetrics" type:"structure"`

	// Contains information about the validation dataset.
	//
	// ValidationDataConfig is a required field
	ValidationDataConfig *ValidationDataConfig `locationName:"validationDataConfig" type:"structure" required:"true"`

	// The loss metric for each validator that you provided in the createjob request.
	ValidationMetrics []*ValidatorMetric `locationName:"validationMetrics" type:"list"`

	// VPC configuration for the custom model job.
	VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"`
	// contains filtered or unexported fields
}

func (GetModelCustomizationJobOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetModelCustomizationJobOutput) SetBaseModelArn

SetBaseModelArn sets the BaseModelArn field's value.

func (*GetModelCustomizationJobOutput) SetClientRequestToken

SetClientRequestToken sets the ClientRequestToken field's value.

func (*GetModelCustomizationJobOutput) SetCreationTime

SetCreationTime sets the CreationTime field's value.

func (*GetModelCustomizationJobOutput) SetCustomizationType added in v1.48.7

SetCustomizationType sets the CustomizationType field's value.

func (*GetModelCustomizationJobOutput) SetEndTime

SetEndTime sets the EndTime field's value.

func (*GetModelCustomizationJobOutput) SetFailureMessage

SetFailureMessage sets the FailureMessage field's value.

func (*GetModelCustomizationJobOutput) SetHyperParameters

SetHyperParameters sets the HyperParameters field's value.

func (*GetModelCustomizationJobOutput) SetJobArn

SetJobArn sets the JobArn field's value.

func (*GetModelCustomizationJobOutput) SetJobName

SetJobName sets the JobName field's value.

func (*GetModelCustomizationJobOutput) SetLastModifiedTime

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*GetModelCustomizationJobOutput) SetOutputDataConfig

SetOutputDataConfig sets the OutputDataConfig field's value.

func (*GetModelCustomizationJobOutput) SetOutputModelArn

SetOutputModelArn sets the OutputModelArn field's value.

func (*GetModelCustomizationJobOutput) SetOutputModelKmsKeyArn

SetOutputModelKmsKeyArn sets the OutputModelKmsKeyArn field's value.

func (*GetModelCustomizationJobOutput) SetOutputModelName

SetOutputModelName sets the OutputModelName field's value.

func (*GetModelCustomizationJobOutput) SetRoleArn

SetRoleArn sets the RoleArn field's value.

func (*GetModelCustomizationJobOutput) SetStatus

SetStatus sets the Status field's value.

func (*GetModelCustomizationJobOutput) SetTrainingDataConfig

SetTrainingDataConfig sets the TrainingDataConfig field's value.

func (*GetModelCustomizationJobOutput) SetTrainingMetrics

SetTrainingMetrics sets the TrainingMetrics field's value.

func (*GetModelCustomizationJobOutput) SetValidationDataConfig

SetValidationDataConfig sets the ValidationDataConfig field's value.

func (*GetModelCustomizationJobOutput) SetValidationMetrics

SetValidationMetrics sets the ValidationMetrics field's value.

func (*GetModelCustomizationJobOutput) SetVpcConfig

SetVpcConfig sets the VpcConfig field's value.

func (GetModelCustomizationJobOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetModelInvocationLoggingConfigurationInput

type GetModelInvocationLoggingConfigurationInput struct {
	// contains filtered or unexported fields
}

func (GetModelInvocationLoggingConfigurationInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (GetModelInvocationLoggingConfigurationInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetModelInvocationLoggingConfigurationOutput

type GetModelInvocationLoggingConfigurationOutput struct {

	// The current configuration values.
	LoggingConfig *LoggingConfig `locationName:"loggingConfig" type:"structure"`
	// contains filtered or unexported fields
}

func (GetModelInvocationLoggingConfigurationOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetModelInvocationLoggingConfigurationOutput) SetLoggingConfig

SetLoggingConfig sets the LoggingConfig field's value.

func (GetModelInvocationLoggingConfigurationOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetProvisionedModelThroughputInput added in v1.45.20

type GetProvisionedModelThroughputInput struct {

	// The Amazon Resource Name (ARN) or name of the Provisioned Throughput.
	//
	// ProvisionedModelId is a required field
	ProvisionedModelId *string `location:"uri" locationName:"provisionedModelId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetProvisionedModelThroughputInput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProvisionedModelThroughputInput) SetProvisionedModelId added in v1.45.20

SetProvisionedModelId sets the ProvisionedModelId field's value.

func (GetProvisionedModelThroughputInput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProvisionedModelThroughputInput) Validate added in v1.45.20

Validate inspects the fields of the type to determine if they are valid.

type GetProvisionedModelThroughputOutput added in v1.45.20

type GetProvisionedModelThroughputOutput struct {

	// Commitment duration of the Provisioned Throughput.
	CommitmentDuration *string `locationName:"commitmentDuration" type:"string" enum:"CommitmentDuration"`

	// The timestamp for when the commitment term for the Provisioned Throughput
	// expires.
	CommitmentExpirationTime *time.Time `locationName:"commitmentExpirationTime" type:"timestamp" timestampFormat:"iso8601"`

	// The timestamp of the creation time for this Provisioned Throughput.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The Amazon Resource Name (ARN) of the model requested to be associated to
	// this Provisioned Throughput. This value differs from the modelArn if updating
	// hasn't completed.
	//
	// DesiredModelArn is a required field
	DesiredModelArn *string `locationName:"desiredModelArn" min:"20" type:"string" required:"true"`

	// The number of model units that was requested for this Provisioned Throughput.
	//
	// DesiredModelUnits is a required field
	DesiredModelUnits *int64 `locationName:"desiredModelUnits" min:"1" type:"integer" required:"true"`

	// A failure message for any issues that occurred during creation, updating,
	// or deletion of the Provisioned Throughput.
	FailureMessage *string `locationName:"failureMessage" type:"string"`

	// The Amazon Resource Name (ARN) of the base model for which the Provisioned
	// Throughput was created, or of the base model that the custom model for which
	// the Provisioned Throughput was created was customized.
	//
	// FoundationModelArn is a required field
	FoundationModelArn *string `locationName:"foundationModelArn" type:"string" required:"true"`

	// The timestamp of the last time that this Provisioned Throughput was modified.
	//
	// LastModifiedTime is a required field
	LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The Amazon Resource Name (ARN) of the model associated with this Provisioned
	// Throughput.
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"`

	// The number of model units allocated to this Provisioned Throughput.
	//
	// ModelUnits is a required field
	ModelUnits *int64 `locationName:"modelUnits" min:"1" type:"integer" required:"true"`

	// The Amazon Resource Name (ARN) of the Provisioned Throughput.
	//
	// ProvisionedModelArn is a required field
	ProvisionedModelArn *string `locationName:"provisionedModelArn" type:"string" required:"true"`

	// The name of the Provisioned Throughput.
	//
	// ProvisionedModelName is a required field
	ProvisionedModelName *string `locationName:"provisionedModelName" min:"1" type:"string" required:"true"`

	// The status of the Provisioned Throughput.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"ProvisionedModelStatus"`
	// contains filtered or unexported fields
}

func (GetProvisionedModelThroughputOutput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProvisionedModelThroughputOutput) SetCommitmentDuration added in v1.45.20

SetCommitmentDuration sets the CommitmentDuration field's value.

func (*GetProvisionedModelThroughputOutput) SetCommitmentExpirationTime added in v1.45.20

SetCommitmentExpirationTime sets the CommitmentExpirationTime field's value.

func (*GetProvisionedModelThroughputOutput) SetCreationTime added in v1.45.20

SetCreationTime sets the CreationTime field's value.

func (*GetProvisionedModelThroughputOutput) SetDesiredModelArn added in v1.45.20

SetDesiredModelArn sets the DesiredModelArn field's value.

func (*GetProvisionedModelThroughputOutput) SetDesiredModelUnits added in v1.45.20

SetDesiredModelUnits sets the DesiredModelUnits field's value.

func (*GetProvisionedModelThroughputOutput) SetFailureMessage added in v1.45.20

SetFailureMessage sets the FailureMessage field's value.

func (*GetProvisionedModelThroughputOutput) SetFoundationModelArn added in v1.45.20

SetFoundationModelArn sets the FoundationModelArn field's value.

func (*GetProvisionedModelThroughputOutput) SetLastModifiedTime added in v1.45.20

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*GetProvisionedModelThroughputOutput) SetModelArn added in v1.45.20

SetModelArn sets the ModelArn field's value.

func (*GetProvisionedModelThroughputOutput) SetModelUnits added in v1.45.20

SetModelUnits sets the ModelUnits field's value.

func (*GetProvisionedModelThroughputOutput) SetProvisionedModelArn added in v1.45.20

SetProvisionedModelArn sets the ProvisionedModelArn field's value.

func (*GetProvisionedModelThroughputOutput) SetProvisionedModelName added in v1.45.20

SetProvisionedModelName sets the ProvisionedModelName field's value.

func (*GetProvisionedModelThroughputOutput) SetStatus added in v1.45.20

SetStatus sets the Status field's value.

func (GetProvisionedModelThroughputOutput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailContentFilter added in v1.51.27

type GuardrailContentFilter struct {

	// The strength of the content filter to apply to prompts. As you increase the
	// filter strength, the likelihood of filtering harmful content increases and
	// the probability of seeing harmful content in your application reduces.
	//
	// InputStrength is a required field
	InputStrength *string `locationName:"inputStrength" type:"string" required:"true" enum:"GuardrailFilterStrength"`

	// The strength of the content filter to apply to model responses. As you increase
	// the filter strength, the likelihood of filtering harmful content increases
	// and the probability of seeing harmful content in your application reduces.
	//
	// OutputStrength is a required field
	OutputStrength *string `locationName:"outputStrength" type:"string" required:"true" enum:"GuardrailFilterStrength"`

	// The harmful category that the content filter is applied to.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailContentFilterType"`
	// contains filtered or unexported fields
}

Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.

  • Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).

  • Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.

  • Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.

  • Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.

Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.

For more information, see Guardrails content filters (https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-filters.html).

This data type is used in the following API operations:

func (GuardrailContentFilter) GoString added in v1.51.27

func (s GuardrailContentFilter) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentFilter) SetInputStrength added in v1.51.27

func (s *GuardrailContentFilter) SetInputStrength(v string) *GuardrailContentFilter

SetInputStrength sets the InputStrength field's value.

func (*GuardrailContentFilter) SetOutputStrength added in v1.51.27

func (s *GuardrailContentFilter) SetOutputStrength(v string) *GuardrailContentFilter

SetOutputStrength sets the OutputStrength field's value.

func (*GuardrailContentFilter) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailContentFilter) String added in v1.51.27

func (s GuardrailContentFilter) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailContentFilterConfig added in v1.51.27

type GuardrailContentFilterConfig struct {

	// The strength of the content filter to apply to prompts. As you increase the
	// filter strength, the likelihood of filtering harmful content increases and
	// the probability of seeing harmful content in your application reduces.
	//
	// InputStrength is a required field
	InputStrength *string `locationName:"inputStrength" type:"string" required:"true" enum:"GuardrailFilterStrength"`

	// The strength of the content filter to apply to model responses. As you increase
	// the filter strength, the likelihood of filtering harmful content increases
	// and the probability of seeing harmful content in your application reduces.
	//
	// OutputStrength is a required field
	OutputStrength *string `locationName:"outputStrength" type:"string" required:"true" enum:"GuardrailFilterStrength"`

	// The harmful category that the content filter is applied to.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailContentFilterType"`
	// contains filtered or unexported fields
}

Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.

  • Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).

  • Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.

  • Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.

  • Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.

Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.

For more information, see Guardrails content filters (https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-filters.html).

This data type is used in the following API operations:

func (GuardrailContentFilterConfig) GoString added in v1.51.27

func (s GuardrailContentFilterConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentFilterConfig) SetInputStrength added in v1.51.27

SetInputStrength sets the InputStrength field's value.

func (*GuardrailContentFilterConfig) SetOutputStrength added in v1.51.27

SetOutputStrength sets the OutputStrength field's value.

func (*GuardrailContentFilterConfig) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailContentFilterConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentFilterConfig) Validate added in v1.51.27

func (s *GuardrailContentFilterConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailContentPolicy added in v1.51.27

type GuardrailContentPolicy struct {

	// Contains the type of the content filter and how strongly it should apply
	// to prompts and model responses.
	Filters []*GuardrailContentFilter `locationName:"filters" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Contains details about how to handle harmful content.

This data type is used in the following API operations:

func (GuardrailContentPolicy) GoString added in v1.51.27

func (s GuardrailContentPolicy) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentPolicy) SetFilters added in v1.51.27

SetFilters sets the Filters field's value.

func (GuardrailContentPolicy) String added in v1.51.27

func (s GuardrailContentPolicy) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailContentPolicyConfig added in v1.51.27

type GuardrailContentPolicyConfig struct {

	// Contains the type of the content filter and how strongly it should apply
	// to prompts and model responses.
	//
	// FiltersConfig is a required field
	FiltersConfig []*GuardrailContentFilterConfig `locationName:"filtersConfig" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains details about how to handle harmful content.

This data type is used in the following API operations:

func (GuardrailContentPolicyConfig) GoString added in v1.51.27

func (s GuardrailContentPolicyConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentPolicyConfig) SetFiltersConfig added in v1.51.27

SetFiltersConfig sets the FiltersConfig field's value.

func (GuardrailContentPolicyConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailContentPolicyConfig) Validate added in v1.51.27

func (s *GuardrailContentPolicyConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailManagedWords added in v1.51.27

type GuardrailManagedWords struct {

	// ManagedWords$type The managed word type that was configured for the guardrail.
	// (For now, we only offer profanity word list)
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailManagedWordsType"`
	// contains filtered or unexported fields
}

The managed word list that was configured for the guardrail. (This is a list of words that are pre-defined and managed by Guardrails only.)

func (GuardrailManagedWords) GoString added in v1.51.27

func (s GuardrailManagedWords) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailManagedWords) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailManagedWords) String added in v1.51.27

func (s GuardrailManagedWords) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailManagedWordsConfig added in v1.51.27

type GuardrailManagedWordsConfig struct {

	// The managed word type to configure for the guardrail.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailManagedWordsType"`
	// contains filtered or unexported fields
}

The managed word list to configure for the guardrail.

func (GuardrailManagedWordsConfig) GoString added in v1.51.27

func (s GuardrailManagedWordsConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailManagedWordsConfig) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailManagedWordsConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailManagedWordsConfig) Validate added in v1.51.27

func (s *GuardrailManagedWordsConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailPiiEntity added in v1.51.27

type GuardrailPiiEntity struct {

	// The configured guardrail action when PII entity is detected.
	//
	// Action is a required field
	Action *string `locationName:"action" type:"string" required:"true" enum:"GuardrailSensitiveInformationAction"`

	// The type of PII entity. For example, Social Security Number.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailPiiEntityType"`
	// contains filtered or unexported fields
}

The PII entity configured for the guardrail.

func (GuardrailPiiEntity) GoString added in v1.51.27

func (s GuardrailPiiEntity) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailPiiEntity) SetAction added in v1.51.27

func (s *GuardrailPiiEntity) SetAction(v string) *GuardrailPiiEntity

SetAction sets the Action field's value.

func (*GuardrailPiiEntity) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailPiiEntity) String added in v1.51.27

func (s GuardrailPiiEntity) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailPiiEntityConfig added in v1.51.27

type GuardrailPiiEntityConfig struct {

	// Configure guardrail action when the PII entity is detected.
	//
	// Action is a required field
	Action *string `locationName:"action" type:"string" required:"true" enum:"GuardrailSensitiveInformationAction"`

	// Configure guardrail type when the PII entity is detected.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailPiiEntityType"`
	// contains filtered or unexported fields
}

The PII entity to configure for the guardrail.

func (GuardrailPiiEntityConfig) GoString added in v1.51.27

func (s GuardrailPiiEntityConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailPiiEntityConfig) SetAction added in v1.51.27

SetAction sets the Action field's value.

func (*GuardrailPiiEntityConfig) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailPiiEntityConfig) String added in v1.51.27

func (s GuardrailPiiEntityConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailPiiEntityConfig) Validate added in v1.51.27

func (s *GuardrailPiiEntityConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailRegex added in v1.51.27

type GuardrailRegex struct {

	// The action taken when a match to the regular expression is detected.
	//
	// Action is a required field
	Action *string `locationName:"action" type:"string" required:"true" enum:"GuardrailSensitiveInformationAction"`

	// The description of the regular expression for the guardrail.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The name of the regular expression for the guardrail.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The pattern of the regular expression configured for the guardrail.
	//
	// Pattern is a required field
	Pattern *string `locationName:"pattern" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The regular expression configured for the guardrail.

func (GuardrailRegex) GoString added in v1.51.27

func (s GuardrailRegex) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailRegex) SetAction added in v1.51.27

func (s *GuardrailRegex) SetAction(v string) *GuardrailRegex

SetAction sets the Action field's value.

func (*GuardrailRegex) SetDescription added in v1.51.27

func (s *GuardrailRegex) SetDescription(v string) *GuardrailRegex

SetDescription sets the Description field's value.

func (*GuardrailRegex) SetName added in v1.51.27

func (s *GuardrailRegex) SetName(v string) *GuardrailRegex

SetName sets the Name field's value.

func (*GuardrailRegex) SetPattern added in v1.51.27

func (s *GuardrailRegex) SetPattern(v string) *GuardrailRegex

SetPattern sets the Pattern field's value.

func (GuardrailRegex) String added in v1.51.27

func (s GuardrailRegex) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailRegexConfig added in v1.51.27

type GuardrailRegexConfig struct {

	// The guardrail action to configure when matching regular expression is detected.
	//
	// Action is a required field
	Action *string `locationName:"action" type:"string" required:"true" enum:"GuardrailSensitiveInformationAction"`

	// The description of the regular expression to configure for the guardrail.
	Description *string `locationName:"description" min:"1" type:"string"`

	// The name of the regular expression to configure for the guardrail.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The regular expression pattern to configure for the guardrail.
	//
	// Pattern is a required field
	Pattern *string `locationName:"pattern" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The regular expression to configure for the guardrail.

func (GuardrailRegexConfig) GoString added in v1.51.27

func (s GuardrailRegexConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailRegexConfig) SetAction added in v1.51.27

SetAction sets the Action field's value.

func (*GuardrailRegexConfig) SetDescription added in v1.51.27

func (s *GuardrailRegexConfig) SetDescription(v string) *GuardrailRegexConfig

SetDescription sets the Description field's value.

func (*GuardrailRegexConfig) SetName added in v1.51.27

SetName sets the Name field's value.

func (*GuardrailRegexConfig) SetPattern added in v1.51.27

SetPattern sets the Pattern field's value.

func (GuardrailRegexConfig) String added in v1.51.27

func (s GuardrailRegexConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailRegexConfig) Validate added in v1.51.27

func (s *GuardrailRegexConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailSensitiveInformationPolicy added in v1.51.27

type GuardrailSensitiveInformationPolicy struct {

	// The list of PII entities configured for the guardrail.
	PiiEntities []*GuardrailPiiEntity `locationName:"piiEntities" min:"1" type:"list"`

	// The list of regular expressions configured for the guardrail.
	Regexes []*GuardrailRegex `locationName:"regexes" type:"list"`
	// contains filtered or unexported fields
}

Contains details about PII entities and regular expressions configured for the guardrail.

func (GuardrailSensitiveInformationPolicy) GoString added in v1.51.27

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailSensitiveInformationPolicy) SetPiiEntities added in v1.51.27

SetPiiEntities sets the PiiEntities field's value.

func (*GuardrailSensitiveInformationPolicy) SetRegexes added in v1.51.27

SetRegexes sets the Regexes field's value.

func (GuardrailSensitiveInformationPolicy) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailSensitiveInformationPolicyConfig added in v1.51.27

type GuardrailSensitiveInformationPolicyConfig struct {

	// A list of PII entities to configure to the guardrail.
	PiiEntitiesConfig []*GuardrailPiiEntityConfig `locationName:"piiEntitiesConfig" min:"1" type:"list"`

	// A list of regular expressions to configure to the guardrail.
	RegexesConfig []*GuardrailRegexConfig `locationName:"regexesConfig" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Contains details about PII entities and regular expressions to configure for the guardrail.

func (GuardrailSensitiveInformationPolicyConfig) GoString added in v1.51.27

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailSensitiveInformationPolicyConfig) SetPiiEntitiesConfig added in v1.51.27

SetPiiEntitiesConfig sets the PiiEntitiesConfig field's value.

func (*GuardrailSensitiveInformationPolicyConfig) SetRegexesConfig added in v1.51.27

SetRegexesConfig sets the RegexesConfig field's value.

func (GuardrailSensitiveInformationPolicyConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailSensitiveInformationPolicyConfig) Validate added in v1.51.27

Validate inspects the fields of the type to determine if they are valid.

type GuardrailSummary added in v1.51.27

type GuardrailSummary struct {

	// The ARN of the guardrail.
	//
	// Arn is a required field
	Arn *string `locationName:"arn" type:"string" required:"true"`

	// The date and time at which the guardrail was created.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// A description of the guardrail.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailSummary's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// The unique identifier of the guardrail.
	//
	// Id is a required field
	Id *string `locationName:"id" type:"string" required:"true"`

	// The name of the guardrail.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailSummary's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// The status of the guardrail.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"GuardrailStatus"`

	// The date and time at which the guardrail was last updated.
	//
	// UpdatedAt is a required field
	UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The version of the guardrail.
	//
	// Version is a required field
	Version *string `locationName:"version" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains details about a guardrail.

This data type is used in the following API operations:

func (GuardrailSummary) GoString added in v1.51.27

func (s GuardrailSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailSummary) SetArn added in v1.51.27

SetArn sets the Arn field's value.

func (*GuardrailSummary) SetCreatedAt added in v1.51.27

func (s *GuardrailSummary) SetCreatedAt(v time.Time) *GuardrailSummary

SetCreatedAt sets the CreatedAt field's value.

func (*GuardrailSummary) SetDescription added in v1.51.27

func (s *GuardrailSummary) SetDescription(v string) *GuardrailSummary

SetDescription sets the Description field's value.

func (*GuardrailSummary) SetId added in v1.51.27

SetId sets the Id field's value.

func (*GuardrailSummary) SetName added in v1.51.27

func (s *GuardrailSummary) SetName(v string) *GuardrailSummary

SetName sets the Name field's value.

func (*GuardrailSummary) SetStatus added in v1.51.27

func (s *GuardrailSummary) SetStatus(v string) *GuardrailSummary

SetStatus sets the Status field's value.

func (*GuardrailSummary) SetUpdatedAt added in v1.51.27

func (s *GuardrailSummary) SetUpdatedAt(v time.Time) *GuardrailSummary

SetUpdatedAt sets the UpdatedAt field's value.

func (*GuardrailSummary) SetVersion added in v1.51.27

func (s *GuardrailSummary) SetVersion(v string) *GuardrailSummary

SetVersion sets the Version field's value.

func (GuardrailSummary) String added in v1.51.27

func (s GuardrailSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailTopic added in v1.51.27

type GuardrailTopic struct {

	// A definition of the topic to deny.
	//
	// Definition is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailTopic's
	// String and GoString methods.
	//
	// Definition is a required field
	Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"`

	// A list of prompts, each of which is an example of a prompt that can be categorized
	// as belonging to the topic.
	Examples []*string `locationName:"examples" type:"list"`

	// The name of the topic to deny.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailTopic's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// Specifies to deny the topic.
	Type *string `locationName:"type" type:"string" enum:"GuardrailTopicType"`
	// contains filtered or unexported fields
}

Details about topics for the guardrail to identify and deny.

This data type is used in the following API operations:

func (GuardrailTopic) GoString added in v1.51.27

func (s GuardrailTopic) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopic) SetDefinition added in v1.51.27

func (s *GuardrailTopic) SetDefinition(v string) *GuardrailTopic

SetDefinition sets the Definition field's value.

func (*GuardrailTopic) SetExamples added in v1.51.27

func (s *GuardrailTopic) SetExamples(v []*string) *GuardrailTopic

SetExamples sets the Examples field's value.

func (*GuardrailTopic) SetName added in v1.51.27

func (s *GuardrailTopic) SetName(v string) *GuardrailTopic

SetName sets the Name field's value.

func (*GuardrailTopic) SetType added in v1.51.27

func (s *GuardrailTopic) SetType(v string) *GuardrailTopic

SetType sets the Type field's value.

func (GuardrailTopic) String added in v1.51.27

func (s GuardrailTopic) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailTopicConfig added in v1.51.27

type GuardrailTopicConfig struct {

	// A definition of the topic to deny.
	//
	// Definition is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailTopicConfig's
	// String and GoString methods.
	//
	// Definition is a required field
	Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"`

	// A list of prompts, each of which is an example of a prompt that can be categorized
	// as belonging to the topic.
	Examples []*string `locationName:"examples" type:"list"`

	// The name of the topic to deny.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GuardrailTopicConfig's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// Specifies to deny the topic.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"GuardrailTopicType"`
	// contains filtered or unexported fields
}

Details about topics for the guardrail to identify and deny.

This data type is used in the following API operations:

func (GuardrailTopicConfig) GoString added in v1.51.27

func (s GuardrailTopicConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopicConfig) SetDefinition added in v1.51.27

func (s *GuardrailTopicConfig) SetDefinition(v string) *GuardrailTopicConfig

SetDefinition sets the Definition field's value.

func (*GuardrailTopicConfig) SetExamples added in v1.51.27

func (s *GuardrailTopicConfig) SetExamples(v []*string) *GuardrailTopicConfig

SetExamples sets the Examples field's value.

func (*GuardrailTopicConfig) SetName added in v1.51.27

SetName sets the Name field's value.

func (*GuardrailTopicConfig) SetType added in v1.51.27

SetType sets the Type field's value.

func (GuardrailTopicConfig) String added in v1.51.27

func (s GuardrailTopicConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopicConfig) Validate added in v1.51.27

func (s *GuardrailTopicConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailTopicPolicy added in v1.51.27

type GuardrailTopicPolicy struct {

	// A list of policies related to topics that the guardrail should deny.
	//
	// Topics is a required field
	Topics []*GuardrailTopic `locationName:"topics" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains details about topics that the guardrail should identify and deny.

This data type is used in the following API operations:

func (GuardrailTopicPolicy) GoString added in v1.51.27

func (s GuardrailTopicPolicy) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopicPolicy) SetTopics added in v1.51.27

SetTopics sets the Topics field's value.

func (GuardrailTopicPolicy) String added in v1.51.27

func (s GuardrailTopicPolicy) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailTopicPolicyConfig added in v1.51.27

type GuardrailTopicPolicyConfig struct {

	// A list of policies related to topics that the guardrail should deny.
	//
	// TopicsConfig is a required field
	TopicsConfig []*GuardrailTopicConfig `locationName:"topicsConfig" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Contains details about topics that the guardrail should identify and deny.

This data type is used in the following API operations:

func (GuardrailTopicPolicyConfig) GoString added in v1.51.27

func (s GuardrailTopicPolicyConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopicPolicyConfig) SetTopicsConfig added in v1.51.27

SetTopicsConfig sets the TopicsConfig field's value.

func (GuardrailTopicPolicyConfig) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailTopicPolicyConfig) Validate added in v1.51.27

func (s *GuardrailTopicPolicyConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailWord added in v1.51.27

type GuardrailWord struct {

	// Text of the word configured for the guardrail to block.
	//
	// Text is a required field
	Text *string `locationName:"text" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

A word configured for the guardrail.

func (GuardrailWord) GoString added in v1.51.27

func (s GuardrailWord) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWord) SetText added in v1.51.27

func (s *GuardrailWord) SetText(v string) *GuardrailWord

SetText sets the Text field's value.

func (GuardrailWord) String added in v1.51.27

func (s GuardrailWord) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailWordConfig added in v1.51.27

type GuardrailWordConfig struct {

	// Text of the word configured for the guardrail to block.
	//
	// Text is a required field
	Text *string `locationName:"text" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

A word to configure for the guardrail.

func (GuardrailWordConfig) GoString added in v1.51.27

func (s GuardrailWordConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWordConfig) SetText added in v1.51.27

SetText sets the Text field's value.

func (GuardrailWordConfig) String added in v1.51.27

func (s GuardrailWordConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWordConfig) Validate added in v1.51.27

func (s *GuardrailWordConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GuardrailWordPolicy added in v1.51.27

type GuardrailWordPolicy struct {

	// A list of managed words configured for the guardrail.
	ManagedWordLists []*GuardrailManagedWords `locationName:"managedWordLists" type:"list"`

	// A list of words configured for the guardrail.
	Words []*GuardrailWord `locationName:"words" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Contains details about the word policy configured for the guardrail.

func (GuardrailWordPolicy) GoString added in v1.51.27

func (s GuardrailWordPolicy) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWordPolicy) SetManagedWordLists added in v1.51.27

func (s *GuardrailWordPolicy) SetManagedWordLists(v []*GuardrailManagedWords) *GuardrailWordPolicy

SetManagedWordLists sets the ManagedWordLists field's value.

func (*GuardrailWordPolicy) SetWords added in v1.51.27

SetWords sets the Words field's value.

func (GuardrailWordPolicy) String added in v1.51.27

func (s GuardrailWordPolicy) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GuardrailWordPolicyConfig added in v1.51.27

type GuardrailWordPolicyConfig struct {

	// A list of managed words to configure for the guardrail.
	ManagedWordListsConfig []*GuardrailManagedWordsConfig `locationName:"managedWordListsConfig" type:"list"`

	// A list of words to configure for the guardrail.
	WordsConfig []*GuardrailWordConfig `locationName:"wordsConfig" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Contains details about the word policy to configured for the guardrail.

func (GuardrailWordPolicyConfig) GoString added in v1.51.27

func (s GuardrailWordPolicyConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWordPolicyConfig) SetManagedWordListsConfig added in v1.51.27

SetManagedWordListsConfig sets the ManagedWordListsConfig field's value.

func (*GuardrailWordPolicyConfig) SetWordsConfig added in v1.51.27

SetWordsConfig sets the WordsConfig field's value.

func (GuardrailWordPolicyConfig) String added in v1.51.27

func (s GuardrailWordPolicyConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GuardrailWordPolicyConfig) Validate added in v1.51.27

func (s *GuardrailWordPolicyConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type HumanEvaluationConfig added in v1.51.27

type HumanEvaluationConfig struct {

	// A HumanEvaluationCustomMetric object. It contains the names the metrics,
	// how the metrics are to be evaluated, an optional description.
	CustomMetrics []*HumanEvaluationCustomMetric `locationName:"customMetrics" min:"1" type:"list"`

	// Use to specify the metrics, task, and prompt dataset to be used in your model
	// evaluation job.
	//
	// DatasetMetricConfigs is a required field
	DatasetMetricConfigs []*EvaluationDatasetMetricConfig `locationName:"datasetMetricConfigs" min:"1" type:"list" required:"true"`

	// The parameters of the human workflow.
	HumanWorkflowConfig *HumanWorkflowConfig `locationName:"humanWorkflowConfig" type:"structure"`
	// contains filtered or unexported fields
}

Specifies the custom metrics, how tasks will be rated, the flow definition ARN, and your custom prompt datasets. Model evaluation jobs use human workers only support the use of custom prompt datasets. To learn more about custom prompt datasets and the required format, see Custom prompt datasets (https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-prompt-datasets-custom.html).

When you create custom metrics in HumanEvaluationCustomMetric you must specify the metric's name. The list of names specified in the HumanEvaluationCustomMetric array, must match the metricNames array of strings specified in EvaluationDatasetMetricConfig. For example, if in the HumanEvaluationCustomMetric array your specified the names "accuracy", "toxicity", "readability" as custom metrics then the metricNames array would need to look like the following ["accuracy", "toxicity", "readability"] in EvaluationDatasetMetricConfig.

func (HumanEvaluationConfig) GoString added in v1.51.27

func (s HumanEvaluationConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanEvaluationConfig) SetCustomMetrics added in v1.51.27

SetCustomMetrics sets the CustomMetrics field's value.

func (*HumanEvaluationConfig) SetDatasetMetricConfigs added in v1.51.27

SetDatasetMetricConfigs sets the DatasetMetricConfigs field's value.

func (*HumanEvaluationConfig) SetHumanWorkflowConfig added in v1.51.27

func (s *HumanEvaluationConfig) SetHumanWorkflowConfig(v *HumanWorkflowConfig) *HumanEvaluationConfig

SetHumanWorkflowConfig sets the HumanWorkflowConfig field's value.

func (HumanEvaluationConfig) String added in v1.51.27

func (s HumanEvaluationConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanEvaluationConfig) Validate added in v1.51.27

func (s *HumanEvaluationConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type HumanEvaluationCustomMetric added in v1.51.27

type HumanEvaluationCustomMetric struct {

	// An optional description of the metric. Use this parameter to provide more
	// details about the metric.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by HumanEvaluationCustomMetric's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// The name of the metric. Your human evaluators will see this name in the evaluation
	// UI.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by HumanEvaluationCustomMetric's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// Choose how you want your human workers to evaluation your model. Valid values
	// for rating methods are ThumbsUpDown, IndividualLikertScale,ComparisonLikertScale,
	// ComparisonChoice, and ComparisonRank
	//
	// RatingMethod is a required field
	RatingMethod *string `locationName:"ratingMethod" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

In a model evaluation job that uses human workers you must define the name of the metric, and how you want that metric rated ratingMethod, and an optional description of the metric.

func (HumanEvaluationCustomMetric) GoString added in v1.51.27

func (s HumanEvaluationCustomMetric) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanEvaluationCustomMetric) SetDescription added in v1.51.27

SetDescription sets the Description field's value.

func (*HumanEvaluationCustomMetric) SetName added in v1.51.27

SetName sets the Name field's value.

func (*HumanEvaluationCustomMetric) SetRatingMethod added in v1.51.27

SetRatingMethod sets the RatingMethod field's value.

func (HumanEvaluationCustomMetric) String added in v1.51.27

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanEvaluationCustomMetric) Validate added in v1.51.27

func (s *HumanEvaluationCustomMetric) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type HumanWorkflowConfig added in v1.51.27

type HumanWorkflowConfig struct {

	// The Amazon Resource Number (ARN) for the flow definition
	//
	// FlowDefinitionArn is a required field
	FlowDefinitionArn *string `locationName:"flowDefinitionArn" type:"string" required:"true"`

	// Instructions for the flow definition
	//
	// Instructions is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by HumanWorkflowConfig's
	// String and GoString methods.
	Instructions *string `locationName:"instructions" min:"1" type:"string" sensitive:"true"`
	// contains filtered or unexported fields
}

Contains SageMakerFlowDefinition object. The object is used to specify the prompt dataset, task type, rating method and metric names.

func (HumanWorkflowConfig) GoString added in v1.51.27

func (s HumanWorkflowConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanWorkflowConfig) SetFlowDefinitionArn added in v1.51.27

func (s *HumanWorkflowConfig) SetFlowDefinitionArn(v string) *HumanWorkflowConfig

SetFlowDefinitionArn sets the FlowDefinitionArn field's value.

func (*HumanWorkflowConfig) SetInstructions added in v1.51.27

func (s *HumanWorkflowConfig) SetInstructions(v string) *HumanWorkflowConfig

SetInstructions sets the Instructions field's value.

func (HumanWorkflowConfig) String added in v1.51.27

func (s HumanWorkflowConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*HumanWorkflowConfig) Validate added in v1.51.27

func (s *HumanWorkflowConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type InternalServerException

type InternalServerException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

An internal server error occurred. Retry your request.

func (*InternalServerException) Code

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error

func (s *InternalServerException) Error() string

func (InternalServerException) GoString

func (s InternalServerException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*InternalServerException) Message

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String

func (s InternalServerException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListCustomModelsInput

type ListCustomModelsInput struct {

	// Return custom models only if the base model Amazon Resource Name (ARN) matches
	// this parameter.
	BaseModelArnEquals *string `location:"querystring" locationName:"baseModelArnEquals" min:"20" type:"string"`

	// Return custom models created after the specified time.
	CreationTimeAfter *time.Time `location:"querystring" locationName:"creationTimeAfter" type:"timestamp" timestampFormat:"iso8601"`

	// Return custom models created before the specified time.
	CreationTimeBefore *time.Time `location:"querystring" locationName:"creationTimeBefore" type:"timestamp" timestampFormat:"iso8601"`

	// Return custom models only if the foundation model Amazon Resource Name (ARN)
	// matches this parameter.
	FoundationModelArnEquals *string `location:"querystring" locationName:"foundationModelArnEquals" type:"string"`

	// Maximum number of results to return in the response.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Return custom models only if the job name contains these characters.
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// Continuation token from the previous response, for Amazon Bedrock to list
	// the next set of results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`

	// The field to sort by in the returned list of models.
	SortBy *string `location:"querystring" locationName:"sortBy" type:"string" enum:"SortModelsBy"`

	// The sort order of the results.
	SortOrder *string `location:"querystring" locationName:"sortOrder" type:"string" enum:"SortOrder"`
	// contains filtered or unexported fields
}

func (ListCustomModelsInput) GoString

func (s ListCustomModelsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCustomModelsInput) SetBaseModelArnEquals

func (s *ListCustomModelsInput) SetBaseModelArnEquals(v string) *ListCustomModelsInput

SetBaseModelArnEquals sets the BaseModelArnEquals field's value.

func (*ListCustomModelsInput) SetCreationTimeAfter

func (s *ListCustomModelsInput) SetCreationTimeAfter(v time.Time) *ListCustomModelsInput

SetCreationTimeAfter sets the CreationTimeAfter field's value.

func (*ListCustomModelsInput) SetCreationTimeBefore

func (s *ListCustomModelsInput) SetCreationTimeBefore(v time.Time) *ListCustomModelsInput

SetCreationTimeBefore sets the CreationTimeBefore field's value.

func (*ListCustomModelsInput) SetFoundationModelArnEquals

func (s *ListCustomModelsInput) SetFoundationModelArnEquals(v string) *ListCustomModelsInput

SetFoundationModelArnEquals sets the FoundationModelArnEquals field's value.

func (*ListCustomModelsInput) SetMaxResults

func (s *ListCustomModelsInput) SetMaxResults(v int64) *ListCustomModelsInput

SetMaxResults sets the MaxResults field's value.

func (*ListCustomModelsInput) SetNameContains

func (s *ListCustomModelsInput) SetNameContains(v string) *ListCustomModelsInput

SetNameContains sets the NameContains field's value.

func (*ListCustomModelsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListCustomModelsInput) SetSortBy

SetSortBy sets the SortBy field's value.

func (*ListCustomModelsInput) SetSortOrder

SetSortOrder sets the SortOrder field's value.

func (ListCustomModelsInput) String

func (s ListCustomModelsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCustomModelsInput) Validate

func (s *ListCustomModelsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListCustomModelsOutput

type ListCustomModelsOutput struct {

	// Model summaries.
	ModelSummaries []*CustomModelSummary `locationName:"modelSummaries" type:"list"`

	// Continuation token for the next request to list the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListCustomModelsOutput) GoString

func (s ListCustomModelsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCustomModelsOutput) SetModelSummaries

SetModelSummaries sets the ModelSummaries field's value.

func (*ListCustomModelsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListCustomModelsOutput) String

func (s ListCustomModelsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListEvaluationJobsInput added in v1.51.27

type ListEvaluationJobsInput struct {

	// A filter that includes model evaluation jobs created after the time specified.
	CreationTimeAfter *time.Time `location:"querystring" locationName:"creationTimeAfter" type:"timestamp" timestampFormat:"iso8601"`

	// A filter that includes model evaluation jobs created prior to the time specified.
	CreationTimeBefore *time.Time `location:"querystring" locationName:"creationTimeBefore" type:"timestamp" timestampFormat:"iso8601"`

	// The maximum number of results to return.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Query parameter string for model evaluation job names.
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// Continuation token from the previous response, for Amazon Bedrock to list
	// the next set of results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`

	// Allows you to sort model evaluation jobs by when they were created.
	SortBy *string `location:"querystring" locationName:"sortBy" type:"string" enum:"SortJobsBy"`

	// How you want the order of jobs sorted.
	SortOrder *string `location:"querystring" locationName:"sortOrder" type:"string" enum:"SortOrder"`

	// Only return jobs where the status condition is met.
	StatusEquals *string `location:"querystring" locationName:"statusEquals" type:"string" enum:"EvaluationJobStatus"`
	// contains filtered or unexported fields
}

func (ListEvaluationJobsInput) GoString added in v1.51.27

func (s ListEvaluationJobsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListEvaluationJobsInput) SetCreationTimeAfter added in v1.51.27

func (s *ListEvaluationJobsInput) SetCreationTimeAfter(v time.Time) *ListEvaluationJobsInput

SetCreationTimeAfter sets the CreationTimeAfter field's value.

func (*ListEvaluationJobsInput) SetCreationTimeBefore added in v1.51.27

func (s *ListEvaluationJobsInput) SetCreationTimeBefore(v time.Time) *ListEvaluationJobsInput

SetCreationTimeBefore sets the CreationTimeBefore field's value.

func (*ListEvaluationJobsInput) SetMaxResults added in v1.51.27

SetMaxResults sets the MaxResults field's value.

func (*ListEvaluationJobsInput) SetNameContains added in v1.51.27

SetNameContains sets the NameContains field's value.

func (*ListEvaluationJobsInput) SetNextToken added in v1.51.27

SetNextToken sets the NextToken field's value.

func (*ListEvaluationJobsInput) SetSortBy added in v1.51.27

SetSortBy sets the SortBy field's value.

func (*ListEvaluationJobsInput) SetSortOrder added in v1.51.27

SetSortOrder sets the SortOrder field's value.

func (*ListEvaluationJobsInput) SetStatusEquals added in v1.51.27

SetStatusEquals sets the StatusEquals field's value.

func (ListEvaluationJobsInput) String added in v1.51.27

func (s ListEvaluationJobsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListEvaluationJobsInput) Validate added in v1.51.27

func (s *ListEvaluationJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListEvaluationJobsOutput added in v1.51.27

type ListEvaluationJobsOutput struct {

	// A summary of the model evaluation jobs.
	JobSummaries []*EvaluationSummary `locationName:"jobSummaries" min:"1" type:"list"`

	// Continuation token from the previous response, for Amazon Bedrock to list
	// the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListEvaluationJobsOutput) GoString added in v1.51.27

func (s ListEvaluationJobsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListEvaluationJobsOutput) SetJobSummaries added in v1.51.27

SetJobSummaries sets the JobSummaries field's value.

func (*ListEvaluationJobsOutput) SetNextToken added in v1.51.27

SetNextToken sets the NextToken field's value.

func (ListEvaluationJobsOutput) String added in v1.51.27

func (s ListEvaluationJobsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListFoundationModelsInput

type ListFoundationModelsInput struct {

	// Return models that support the customization type that you specify. For more
	// information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html)
	// in the Amazon Bedrock User Guide.
	ByCustomizationType *string `location:"querystring" locationName:"byCustomizationType" type:"string" enum:"ModelCustomization"`

	// Return models that support the inference type that you specify. For more
	// information, see Provisioned Throughput (https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html)
	// in the Amazon Bedrock User Guide.
	ByInferenceType *string `location:"querystring" locationName:"byInferenceType" type:"string" enum:"InferenceType"`

	// Return models that support the output modality that you specify.
	ByOutputModality *string `location:"querystring" locationName:"byOutputModality" type:"string" enum:"ModelModality"`

	// Return models belonging to the model provider that you specify.
	ByProvider *string `location:"querystring" locationName:"byProvider" type:"string"`
	// contains filtered or unexported fields
}

func (ListFoundationModelsInput) GoString

func (s ListFoundationModelsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListFoundationModelsInput) SetByCustomizationType

func (s *ListFoundationModelsInput) SetByCustomizationType(v string) *ListFoundationModelsInput

SetByCustomizationType sets the ByCustomizationType field's value.

func (*ListFoundationModelsInput) SetByInferenceType

SetByInferenceType sets the ByInferenceType field's value.

func (*ListFoundationModelsInput) SetByOutputModality

func (s *ListFoundationModelsInput) SetByOutputModality(v string) *ListFoundationModelsInput

SetByOutputModality sets the ByOutputModality field's value.

func (*ListFoundationModelsInput) SetByProvider

SetByProvider sets the ByProvider field's value.

func (ListFoundationModelsInput) String

func (s ListFoundationModelsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListFoundationModelsOutput

type ListFoundationModelsOutput struct {

	// A list of Amazon Bedrock foundation models.
	ModelSummaries []*FoundationModelSummary `locationName:"modelSummaries" type:"list"`
	// contains filtered or unexported fields
}

func (ListFoundationModelsOutput) GoString

func (s ListFoundationModelsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListFoundationModelsOutput) SetModelSummaries

SetModelSummaries sets the ModelSummaries field's value.

func (ListFoundationModelsOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListGuardrailsInput added in v1.51.27

type ListGuardrailsInput struct {

	// The unique identifier of the guardrail.
	GuardrailIdentifier *string `location:"querystring" locationName:"guardrailIdentifier" type:"string"`

	// The maximum number of results to return in the response.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// If there are more results than were returned in the response, the response
	// returns a nextToken that you can send in another ListGuardrails request to
	// see the next batch of results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListGuardrailsInput) GoString added in v1.51.27

func (s ListGuardrailsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListGuardrailsInput) SetGuardrailIdentifier added in v1.51.27

func (s *ListGuardrailsInput) SetGuardrailIdentifier(v string) *ListGuardrailsInput

SetGuardrailIdentifier sets the GuardrailIdentifier field's value.

func (*ListGuardrailsInput) SetMaxResults added in v1.51.27

func (s *ListGuardrailsInput) SetMaxResults(v int64) *ListGuardrailsInput

SetMaxResults sets the MaxResults field's value.

func (*ListGuardrailsInput) SetNextToken added in v1.51.27

func (s *ListGuardrailsInput) SetNextToken(v string) *ListGuardrailsInput

SetNextToken sets the NextToken field's value.

func (ListGuardrailsInput) String added in v1.51.27

func (s ListGuardrailsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListGuardrailsInput) Validate added in v1.51.27

func (s *ListGuardrailsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListGuardrailsOutput added in v1.51.27

type ListGuardrailsOutput struct {

	// A list of objects, each of which contains details about a guardrail.
	//
	// Guardrails is a required field
	Guardrails []*GuardrailSummary `locationName:"guardrails" type:"list" required:"true"`

	// If there are more results than were returned in the response, the response
	// returns a nextToken that you can send in another ListGuardrails request to
	// see the next batch of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListGuardrailsOutput) GoString added in v1.51.27

func (s ListGuardrailsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListGuardrailsOutput) SetGuardrails added in v1.51.27

SetGuardrails sets the Guardrails field's value.

func (*ListGuardrailsOutput) SetNextToken added in v1.51.27

func (s *ListGuardrailsOutput) SetNextToken(v string) *ListGuardrailsOutput

SetNextToken sets the NextToken field's value.

func (ListGuardrailsOutput) String added in v1.51.27

func (s ListGuardrailsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListModelCustomizationJobsInput

type ListModelCustomizationJobsInput struct {

	// Return customization jobs created after the specified time.
	CreationTimeAfter *time.Time `location:"querystring" locationName:"creationTimeAfter" type:"timestamp" timestampFormat:"iso8601"`

	// Return customization jobs created before the specified time.
	CreationTimeBefore *time.Time `location:"querystring" locationName:"creationTimeBefore" type:"timestamp" timestampFormat:"iso8601"`

	// Maximum number of results to return in the response.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Return customization jobs only if the job name contains these characters.
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// Continuation token from the previous response, for Amazon Bedrock to list
	// the next set of results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`

	// The field to sort by in the returned list of jobs.
	SortBy *string `location:"querystring" locationName:"sortBy" type:"string" enum:"SortJobsBy"`

	// The sort order of the results.
	SortOrder *string `location:"querystring" locationName:"sortOrder" type:"string" enum:"SortOrder"`

	// Return customization jobs with the specified status.
	StatusEquals *string `location:"querystring" locationName:"statusEquals" type:"string" enum:"FineTuningJobStatus"`
	// contains filtered or unexported fields
}

func (ListModelCustomizationJobsInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListModelCustomizationJobsInput) SetCreationTimeAfter

SetCreationTimeAfter sets the CreationTimeAfter field's value.

func (*ListModelCustomizationJobsInput) SetCreationTimeBefore

SetCreationTimeBefore sets the CreationTimeBefore field's value.

func (*ListModelCustomizationJobsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListModelCustomizationJobsInput) SetNameContains

SetNameContains sets the NameContains field's value.

func (*ListModelCustomizationJobsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListModelCustomizationJobsInput) SetSortBy

SetSortBy sets the SortBy field's value.

func (*ListModelCustomizationJobsInput) SetSortOrder

SetSortOrder sets the SortOrder field's value.

func (*ListModelCustomizationJobsInput) SetStatusEquals

SetStatusEquals sets the StatusEquals field's value.

func (ListModelCustomizationJobsInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListModelCustomizationJobsInput) Validate

func (s *ListModelCustomizationJobsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListModelCustomizationJobsOutput

type ListModelCustomizationJobsOutput struct {

	// Job summaries.
	ModelCustomizationJobSummaries []*ModelCustomizationJobSummary `locationName:"modelCustomizationJobSummaries" type:"list"`

	// Page continuation token to use in the next request.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListModelCustomizationJobsOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListModelCustomizationJobsOutput) SetModelCustomizationJobSummaries

SetModelCustomizationJobSummaries sets the ModelCustomizationJobSummaries field's value.

func (*ListModelCustomizationJobsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListModelCustomizationJobsOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListProvisionedModelThroughputsInput added in v1.45.20

type ListProvisionedModelThroughputsInput struct {

	// A filter that returns Provisioned Throughputs created after the specified
	// time.
	CreationTimeAfter *time.Time `location:"querystring" locationName:"creationTimeAfter" type:"timestamp" timestampFormat:"iso8601"`

	// A filter that returns Provisioned Throughputs created before the specified
	// time.
	CreationTimeBefore *time.Time `location:"querystring" locationName:"creationTimeBefore" type:"timestamp" timestampFormat:"iso8601"`

	// THe maximum number of results to return in the response. If there are more
	// results than the number you specified, the response returns a nextToken value.
	// To see the next batch of results, send the nextToken value in another list
	// request.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// A filter that returns Provisioned Throughputs whose model Amazon Resource
	// Name (ARN) is equal to the value that you specify.
	ModelArnEquals *string `location:"querystring" locationName:"modelArnEquals" min:"20" type:"string"`

	// A filter that returns Provisioned Throughputs if their name contains the
	// expression that you specify.
	NameContains *string `location:"querystring" locationName:"nameContains" min:"1" type:"string"`

	// If there are more results than the number you specified in the maxResults
	// field, the response returns a nextToken value. To see the next batch of results,
	// specify the nextToken value in this field.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`

	// The field by which to sort the returned list of Provisioned Throughputs.
	SortBy *string `location:"querystring" locationName:"sortBy" type:"string" enum:"SortByProvisionedModels"`

	// The sort order of the results.
	SortOrder *string `location:"querystring" locationName:"sortOrder" type:"string" enum:"SortOrder"`

	// A filter that returns Provisioned Throughputs if their statuses matches the
	// value that you specify.
	StatusEquals *string `location:"querystring" locationName:"statusEquals" type:"string" enum:"ProvisionedModelStatus"`
	// contains filtered or unexported fields
}

func (ListProvisionedModelThroughputsInput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProvisionedModelThroughputsInput) SetCreationTimeAfter added in v1.45.20

SetCreationTimeAfter sets the CreationTimeAfter field's value.

func (*ListProvisionedModelThroughputsInput) SetCreationTimeBefore added in v1.45.20

SetCreationTimeBefore sets the CreationTimeBefore field's value.

func (*ListProvisionedModelThroughputsInput) SetMaxResults added in v1.45.20

SetMaxResults sets the MaxResults field's value.

func (*ListProvisionedModelThroughputsInput) SetModelArnEquals added in v1.45.20

SetModelArnEquals sets the ModelArnEquals field's value.

func (*ListProvisionedModelThroughputsInput) SetNameContains added in v1.45.20

SetNameContains sets the NameContains field's value.

func (*ListProvisionedModelThroughputsInput) SetNextToken added in v1.45.20

SetNextToken sets the NextToken field's value.

func (*ListProvisionedModelThroughputsInput) SetSortBy added in v1.45.20

SetSortBy sets the SortBy field's value.

func (*ListProvisionedModelThroughputsInput) SetSortOrder added in v1.45.20

SetSortOrder sets the SortOrder field's value.

func (*ListProvisionedModelThroughputsInput) SetStatusEquals added in v1.45.20

SetStatusEquals sets the StatusEquals field's value.

func (ListProvisionedModelThroughputsInput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProvisionedModelThroughputsInput) Validate added in v1.45.20

Validate inspects the fields of the type to determine if they are valid.

type ListProvisionedModelThroughputsOutput added in v1.45.20

type ListProvisionedModelThroughputsOutput struct {

	// If there are more results than the number you specified in the maxResults
	// field, this value is returned. To see the next batch of results, include
	// this value in the nextToken field in another list request.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// A list of summaries, one for each Provisioned Throughput in the response.
	ProvisionedModelSummaries []*ProvisionedModelSummary `locationName:"provisionedModelSummaries" type:"list"`
	// contains filtered or unexported fields
}

func (ListProvisionedModelThroughputsOutput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProvisionedModelThroughputsOutput) SetNextToken added in v1.45.20

SetNextToken sets the NextToken field's value.

func (*ListProvisionedModelThroughputsOutput) SetProvisionedModelSummaries added in v1.45.20

SetProvisionedModelSummaries sets the ProvisionedModelSummaries field's value.

func (ListProvisionedModelThroughputsOutput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// The Amazon Resource Name (ARN) of the resource.
	//
	// ResourceARN is a required field
	ResourceARN *string `locationName:"resourceARN" min:"20" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceInput) GoString

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceInput) SetResourceARN

SetResourceARN sets the ResourceARN field's value.

func (ListTagsForResourceInput) String

func (s ListTagsForResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceInput) Validate

func (s *ListTagsForResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

	// An array of the tags associated with this resource.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceOutput) SetTags

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type LoggingConfig

type LoggingConfig struct {

	// CloudWatch logging configuration.
	CloudWatchConfig *CloudWatchConfig `locationName:"cloudWatchConfig" type:"structure"`

	// Set to include embeddings data in the log delivery.
	EmbeddingDataDeliveryEnabled *bool `locationName:"embeddingDataDeliveryEnabled" type:"boolean"`

	// Set to include image data in the log delivery.
	ImageDataDeliveryEnabled *bool `locationName:"imageDataDeliveryEnabled" type:"boolean"`

	// S3 configuration for storing log data.
	S3Config *S3Config `locationName:"s3Config" type:"structure"`

	// Set to include text data in the log delivery.
	TextDataDeliveryEnabled *bool `locationName:"textDataDeliveryEnabled" type:"boolean"`
	// contains filtered or unexported fields
}

Configuration fields for invocation logging.

func (LoggingConfig) GoString

func (s LoggingConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*LoggingConfig) SetCloudWatchConfig

func (s *LoggingConfig) SetCloudWatchConfig(v *CloudWatchConfig) *LoggingConfig

SetCloudWatchConfig sets the CloudWatchConfig field's value.

func (*LoggingConfig) SetEmbeddingDataDeliveryEnabled

func (s *LoggingConfig) SetEmbeddingDataDeliveryEnabled(v bool) *LoggingConfig

SetEmbeddingDataDeliveryEnabled sets the EmbeddingDataDeliveryEnabled field's value.

func (*LoggingConfig) SetImageDataDeliveryEnabled

func (s *LoggingConfig) SetImageDataDeliveryEnabled(v bool) *LoggingConfig

SetImageDataDeliveryEnabled sets the ImageDataDeliveryEnabled field's value.

func (*LoggingConfig) SetS3Config

func (s *LoggingConfig) SetS3Config(v *S3Config) *LoggingConfig

SetS3Config sets the S3Config field's value.

func (*LoggingConfig) SetTextDataDeliveryEnabled

func (s *LoggingConfig) SetTextDataDeliveryEnabled(v bool) *LoggingConfig

SetTextDataDeliveryEnabled sets the TextDataDeliveryEnabled field's value.

func (LoggingConfig) String

func (s LoggingConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*LoggingConfig) Validate

func (s *LoggingConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ModelCustomizationJobSummary

type ModelCustomizationJobSummary struct {

	// Amazon Resource Name (ARN) of the base model.
	//
	// BaseModelArn is a required field
	BaseModelArn *string `locationName:"baseModelArn" min:"20" type:"string" required:"true"`

	// Creation time of the custom model.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Amazon Resource Name (ARN) of the custom model.
	CustomModelArn *string `locationName:"customModelArn" min:"20" type:"string"`

	// Name of the custom model.
	CustomModelName *string `locationName:"customModelName" min:"1" type:"string"`

	// Specifies whether to carry out continued pre-training of a model or whether
	// to fine-tune it. For more information, see Custom models (https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html).
	CustomizationType *string `locationName:"customizationType" type:"string" enum:"CustomizationType"`

	// Time that the customization job ended.
	EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`

	// Amazon Resource Name (ARN) of the customization job.
	//
	// JobArn is a required field
	JobArn *string `locationName:"jobArn" type:"string" required:"true"`

	// Name of the customization job.
	//
	// JobName is a required field
	JobName *string `locationName:"jobName" min:"1" type:"string" required:"true"`

	// Time that the customization job was last modified.
	LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601"`

	// Status of the customization job.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"ModelCustomizationJobStatus"`
	// contains filtered or unexported fields
}

Information about one customization job

func (ModelCustomizationJobSummary) GoString

func (s ModelCustomizationJobSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ModelCustomizationJobSummary) SetBaseModelArn

SetBaseModelArn sets the BaseModelArn field's value.

func (*ModelCustomizationJobSummary) SetCreationTime

SetCreationTime sets the CreationTime field's value.

func (*ModelCustomizationJobSummary) SetCustomModelArn

SetCustomModelArn sets the CustomModelArn field's value.

func (*ModelCustomizationJobSummary) SetCustomModelName

SetCustomModelName sets the CustomModelName field's value.

func (*ModelCustomizationJobSummary) SetCustomizationType added in v1.48.7

SetCustomizationType sets the CustomizationType field's value.

func (*ModelCustomizationJobSummary) SetEndTime

SetEndTime sets the EndTime field's value.

func (*ModelCustomizationJobSummary) SetJobArn

SetJobArn sets the JobArn field's value.

func (*ModelCustomizationJobSummary) SetJobName

SetJobName sets the JobName field's value.

func (*ModelCustomizationJobSummary) SetLastModifiedTime

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*ModelCustomizationJobSummary) SetStatus

SetStatus sets the Status field's value.

func (ModelCustomizationJobSummary) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type OutputDataConfig

type OutputDataConfig struct {

	// The S3 URI where the output data is stored.
	//
	// S3Uri is a required field
	S3Uri *string `locationName:"s3Uri" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

S3 Location of the output data.

func (OutputDataConfig) GoString

func (s OutputDataConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OutputDataConfig) SetS3Uri

func (s *OutputDataConfig) SetS3Uri(v string) *OutputDataConfig

SetS3Uri sets the S3Uri field's value.

func (OutputDataConfig) String

func (s OutputDataConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OutputDataConfig) Validate

func (s *OutputDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ProvisionedModelSummary added in v1.45.20

type ProvisionedModelSummary struct {

	// The duration for which the Provisioned Throughput was committed.
	CommitmentDuration *string `locationName:"commitmentDuration" type:"string" enum:"CommitmentDuration"`

	// The timestamp for when the commitment term of the Provisioned Throughput
	// expires.
	CommitmentExpirationTime *time.Time `locationName:"commitmentExpirationTime" type:"timestamp" timestampFormat:"iso8601"`

	// The time that the Provisioned Throughput was created.
	//
	// CreationTime is a required field
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The Amazon Resource Name (ARN) of the model requested to be associated to
	// this Provisioned Throughput. This value differs from the modelArn if updating
	// hasn't completed.
	//
	// DesiredModelArn is a required field
	DesiredModelArn *string `locationName:"desiredModelArn" min:"20" type:"string" required:"true"`

	// The number of model units that was requested to be allocated to the Provisioned
	// Throughput.
	//
	// DesiredModelUnits is a required field
	DesiredModelUnits *int64 `locationName:"desiredModelUnits" min:"1" type:"integer" required:"true"`

	// The Amazon Resource Name (ARN) of the base model for which the Provisioned
	// Throughput was created, or of the base model that the custom model for which
	// the Provisioned Throughput was created was customized.
	//
	// FoundationModelArn is a required field
	FoundationModelArn *string `locationName:"foundationModelArn" type:"string" required:"true"`

	// The time that the Provisioned Throughput was last modified.
	//
	// LastModifiedTime is a required field
	LastModifiedTime *time.Time `locationName:"lastModifiedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The Amazon Resource Name (ARN) of the model associated with the Provisioned
	// Throughput.
	//
	// ModelArn is a required field
	ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"`

	// The number of model units allocated to the Provisioned Throughput.
	//
	// ModelUnits is a required field
	ModelUnits *int64 `locationName:"modelUnits" min:"1" type:"integer" required:"true"`

	// The Amazon Resource Name (ARN) of the Provisioned Throughput.
	//
	// ProvisionedModelArn is a required field
	ProvisionedModelArn *string `locationName:"provisionedModelArn" type:"string" required:"true"`

	// The name of the Provisioned Throughput.
	//
	// ProvisionedModelName is a required field
	ProvisionedModelName *string `locationName:"provisionedModelName" min:"1" type:"string" required:"true"`

	// The status of the Provisioned Throughput.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"ProvisionedModelStatus"`
	// contains filtered or unexported fields
}

A summary of information about a Provisioned Throughput.

This data type is used in the following API operations:

func (ProvisionedModelSummary) GoString added in v1.45.20

func (s ProvisionedModelSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ProvisionedModelSummary) SetCommitmentDuration added in v1.45.20

func (s *ProvisionedModelSummary) SetCommitmentDuration(v string) *ProvisionedModelSummary

SetCommitmentDuration sets the CommitmentDuration field's value.

func (*ProvisionedModelSummary) SetCommitmentExpirationTime added in v1.45.20

func (s *ProvisionedModelSummary) SetCommitmentExpirationTime(v time.Time) *ProvisionedModelSummary

SetCommitmentExpirationTime sets the CommitmentExpirationTime field's value.

func (*ProvisionedModelSummary) SetCreationTime added in v1.45.20

SetCreationTime sets the CreationTime field's value.

func (*ProvisionedModelSummary) SetDesiredModelArn added in v1.45.20

func (s *ProvisionedModelSummary) SetDesiredModelArn(v string) *ProvisionedModelSummary

SetDesiredModelArn sets the DesiredModelArn field's value.

func (*ProvisionedModelSummary) SetDesiredModelUnits added in v1.45.20

func (s *ProvisionedModelSummary) SetDesiredModelUnits(v int64) *ProvisionedModelSummary

SetDesiredModelUnits sets the DesiredModelUnits field's value.

func (*ProvisionedModelSummary) SetFoundationModelArn added in v1.45.20

func (s *ProvisionedModelSummary) SetFoundationModelArn(v string) *ProvisionedModelSummary

SetFoundationModelArn sets the FoundationModelArn field's value.

func (*ProvisionedModelSummary) SetLastModifiedTime added in v1.45.20

func (s *ProvisionedModelSummary) SetLastModifiedTime(v time.Time) *ProvisionedModelSummary

SetLastModifiedTime sets the LastModifiedTime field's value.

func (*ProvisionedModelSummary) SetModelArn added in v1.45.20

SetModelArn sets the ModelArn field's value.

func (*ProvisionedModelSummary) SetModelUnits added in v1.45.20

SetModelUnits sets the ModelUnits field's value.

func (*ProvisionedModelSummary) SetProvisionedModelArn added in v1.45.20

func (s *ProvisionedModelSummary) SetProvisionedModelArn(v string) *ProvisionedModelSummary

SetProvisionedModelArn sets the ProvisionedModelArn field's value.

func (*ProvisionedModelSummary) SetProvisionedModelName added in v1.45.20

func (s *ProvisionedModelSummary) SetProvisionedModelName(v string) *ProvisionedModelSummary

SetProvisionedModelName sets the ProvisionedModelName field's value.

func (*ProvisionedModelSummary) SetStatus added in v1.45.20

SetStatus sets the Status field's value.

func (ProvisionedModelSummary) String added in v1.45.20

func (s ProvisionedModelSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type PutModelInvocationLoggingConfigurationInput

type PutModelInvocationLoggingConfigurationInput struct {

	// The logging configuration values to set.
	//
	// LoggingConfig is a required field
	LoggingConfig *LoggingConfig `locationName:"loggingConfig" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (PutModelInvocationLoggingConfigurationInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*PutModelInvocationLoggingConfigurationInput) SetLoggingConfig

SetLoggingConfig sets the LoggingConfig field's value.

func (PutModelInvocationLoggingConfigurationInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*PutModelInvocationLoggingConfigurationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type PutModelInvocationLoggingConfigurationOutput

type PutModelInvocationLoggingConfigurationOutput struct {
	// contains filtered or unexported fields
}

func (PutModelInvocationLoggingConfigurationOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (PutModelInvocationLoggingConfigurationOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourceNotFoundException

type ResourceNotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

func (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type S3Config

type S3Config struct {

	// S3 bucket name.
	//
	// BucketName is a required field
	BucketName *string `locationName:"bucketName" min:"3" type:"string" required:"true"`

	// S3 prefix.
	KeyPrefix *string `locationName:"keyPrefix" type:"string"`
	// contains filtered or unexported fields
}

S3 configuration for storing log data.

func (S3Config) GoString

func (s S3Config) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*S3Config) SetBucketName

func (s *S3Config) SetBucketName(v string) *S3Config

SetBucketName sets the BucketName field's value.

func (*S3Config) SetKeyPrefix

func (s *S3Config) SetKeyPrefix(v string) *S3Config

SetKeyPrefix sets the KeyPrefix field's value.

func (S3Config) String

func (s S3Config) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*S3Config) Validate

func (s *S3Config) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ServiceQuotaExceededException

type ServiceQuotaExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The number of requests exceeds the service quota. Resubmit your request later.

func (*ServiceQuotaExceededException) Code

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error

func (ServiceQuotaExceededException) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ServiceQuotaExceededException) Message

Message returns the exception's message.

func (*ServiceQuotaExceededException) OrigErr

func (s *ServiceQuotaExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceQuotaExceededException) RequestID

func (s *ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceQuotaExceededException) StatusCode

func (s *ServiceQuotaExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ServiceQuotaExceededException) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type StopEvaluationJobInput added in v1.51.27

type StopEvaluationJobInput struct {

	// The ARN of the model evaluation job you want to stop.
	//
	// JobIdentifier is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by StopEvaluationJobInput's
	// String and GoString methods.
	//
	// JobIdentifier is a required field
	JobIdentifier *string `location:"uri" locationName:"jobIdentifier" type:"string" required:"true" sensitive:"true"`
	// contains filtered or unexported fields
}

func (StopEvaluationJobInput) GoString added in v1.51.27

func (s StopEvaluationJobInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StopEvaluationJobInput) SetJobIdentifier added in v1.51.27

func (s *StopEvaluationJobInput) SetJobIdentifier(v string) *StopEvaluationJobInput

SetJobIdentifier sets the JobIdentifier field's value.

func (StopEvaluationJobInput) String added in v1.51.27

func (s StopEvaluationJobInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StopEvaluationJobInput) Validate added in v1.51.27

func (s *StopEvaluationJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopEvaluationJobOutput added in v1.51.27

type StopEvaluationJobOutput struct {
	// contains filtered or unexported fields
}

func (StopEvaluationJobOutput) GoString added in v1.51.27

func (s StopEvaluationJobOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (StopEvaluationJobOutput) String added in v1.51.27

func (s StopEvaluationJobOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type StopModelCustomizationJobInput

type StopModelCustomizationJobInput struct {

	// Job identifier of the job to stop.
	//
	// JobIdentifier is a required field
	JobIdentifier *string `location:"uri" locationName:"jobIdentifier" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopModelCustomizationJobInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StopModelCustomizationJobInput) SetJobIdentifier

SetJobIdentifier sets the JobIdentifier field's value.

func (StopModelCustomizationJobInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StopModelCustomizationJobInput) Validate

func (s *StopModelCustomizationJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopModelCustomizationJobOutput

type StopModelCustomizationJobOutput struct {
	// contains filtered or unexported fields
}

func (StopModelCustomizationJobOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (StopModelCustomizationJobOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Tag

type Tag struct {

	// Key for the tag.
	//
	// Key is a required field
	Key *string `locationName:"key" min:"1" type:"string" required:"true"`

	// Value for the tag.
	//
	// Value is a required field
	Value *string `locationName:"value" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Definition of the key/value pair for a tag.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Tag) Validate

func (s *Tag) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceInput

type TagResourceInput struct {

	// The Amazon Resource Name (ARN) of the resource to tag.
	//
	// ResourceARN is a required field
	ResourceARN *string `locationName:"resourceARN" min:"20" type:"string" required:"true"`

	// Tags to associate with the resource.
	//
	// Tags is a required field
	Tags []*Tag `locationName:"tags" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (TagResourceInput) GoString

func (s TagResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TagResourceInput) SetResourceARN

func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*TagResourceInput) SetTags

func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String

func (s TagResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TagResourceInput) Validate

func (s *TagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceOutput

type TagResourceOutput struct {
	// contains filtered or unexported fields
}

func (TagResourceOutput) GoString

func (s TagResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (TagResourceOutput) String

func (s TagResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ThrottlingException

type ThrottlingException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The number of requests exceeds the limit. Resubmit your request later.

func (*ThrottlingException) Code

func (s *ThrottlingException) Code() string

Code returns the exception type name.

func (*ThrottlingException) Error

func (s *ThrottlingException) Error() string

func (ThrottlingException) GoString

func (s ThrottlingException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ThrottlingException) Message

func (s *ThrottlingException) Message() string

Message returns the exception's message.

func (*ThrottlingException) OrigErr

func (s *ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ThrottlingException) RequestID

func (s *ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ThrottlingException) StatusCode

func (s *ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String

func (s ThrottlingException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TooManyTagsException

type TooManyTagsException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`

	// The name of the resource with too many tags.
	ResourceName *string `locationName:"resourceName" min:"20" type:"string"`
	// contains filtered or unexported fields
}

The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

func (*TooManyTagsException) Code

func (s *TooManyTagsException) Code() string

Code returns the exception type name.

func (*TooManyTagsException) Error

func (s *TooManyTagsException) Error() string

func (TooManyTagsException) GoString

func (s TooManyTagsException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TooManyTagsException) Message

func (s *TooManyTagsException) Message() string

Message returns the exception's message.

func (*TooManyTagsException) OrigErr

func (s *TooManyTagsException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*TooManyTagsException) RequestID

func (s *TooManyTagsException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*TooManyTagsException) StatusCode

func (s *TooManyTagsException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (TooManyTagsException) String

func (s TooManyTagsException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TrainingDataConfig

type TrainingDataConfig struct {

	// The S3 URI where the training data is stored.
	//
	// S3Uri is a required field
	S3Uri *string `locationName:"s3Uri" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

S3 Location of the training data.

func (TrainingDataConfig) GoString

func (s TrainingDataConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TrainingDataConfig) SetS3Uri

SetS3Uri sets the S3Uri field's value.

func (TrainingDataConfig) String

func (s TrainingDataConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TrainingDataConfig) Validate

func (s *TrainingDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TrainingMetrics

type TrainingMetrics struct {

	// Loss metric associated with the custom job.
	TrainingLoss *float64 `locationName:"trainingLoss" type:"float"`
	// contains filtered or unexported fields
}

Metrics associated with the custom job.

func (TrainingMetrics) GoString

func (s TrainingMetrics) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TrainingMetrics) SetTrainingLoss

func (s *TrainingMetrics) SetTrainingLoss(v float64) *TrainingMetrics

SetTrainingLoss sets the TrainingLoss field's value.

func (TrainingMetrics) String

func (s TrainingMetrics) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UntagResourceInput

type UntagResourceInput struct {

	// The Amazon Resource Name (ARN) of the resource to untag.
	//
	// ResourceARN is a required field
	ResourceARN *string `locationName:"resourceARN" min:"20" type:"string" required:"true"`

	// Tag keys of the tags to remove from the resource.
	//
	// TagKeys is a required field
	TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UntagResourceInput) GoString

func (s UntagResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UntagResourceInput) SetResourceARN

func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*UntagResourceInput) SetTagKeys

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String

func (s UntagResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UntagResourceInput) Validate

func (s *UntagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UntagResourceOutput

type UntagResourceOutput struct {
	// contains filtered or unexported fields
}

func (UntagResourceOutput) GoString

func (s UntagResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (UntagResourceOutput) String

func (s UntagResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateGuardrailInput added in v1.51.27

type UpdateGuardrailInput struct {

	// The message to return when the guardrail blocks a prompt.
	//
	// BlockedInputMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateGuardrailInput's
	// String and GoString methods.
	//
	// BlockedInputMessaging is a required field
	BlockedInputMessaging *string `locationName:"blockedInputMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// The message to return when the guardrail blocks a model response.
	//
	// BlockedOutputsMessaging is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateGuardrailInput's
	// String and GoString methods.
	//
	// BlockedOutputsMessaging is a required field
	BlockedOutputsMessaging *string `locationName:"blockedOutputsMessaging" min:"1" type:"string" required:"true" sensitive:"true"`

	// The content policy to configure for the guardrail.
	ContentPolicyConfig *GuardrailContentPolicyConfig `locationName:"contentPolicyConfig" type:"structure"`

	// A description of the guardrail.
	//
	// Description is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateGuardrailInput's
	// String and GoString methods.
	Description *string `locationName:"description" min:"1" type:"string" sensitive:"true"`

	// The unique identifier of the guardrail
	//
	// GuardrailIdentifier is a required field
	GuardrailIdentifier *string `location:"uri" locationName:"guardrailIdentifier" type:"string" required:"true"`

	// The ARN of the KMS key with which to encrypt the guardrail.
	KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"`

	// A name for the guardrail.
	//
	// Name is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateGuardrailInput's
	// String and GoString methods.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`

	// The sensitive information policy to configure for the guardrail.
	SensitiveInformationPolicyConfig *GuardrailSensitiveInformationPolicyConfig `locationName:"sensitiveInformationPolicyConfig" type:"structure"`

	// The topic policy to configure for the guardrail.
	TopicPolicyConfig *GuardrailTopicPolicyConfig `locationName:"topicPolicyConfig" type:"structure"`

	// The word policy to configure for the guardrail.
	WordPolicyConfig *GuardrailWordPolicyConfig `locationName:"wordPolicyConfig" type:"structure"`
	// contains filtered or unexported fields
}

func (UpdateGuardrailInput) GoString added in v1.51.27

func (s UpdateGuardrailInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateGuardrailInput) SetBlockedInputMessaging added in v1.51.27

func (s *UpdateGuardrailInput) SetBlockedInputMessaging(v string) *UpdateGuardrailInput

SetBlockedInputMessaging sets the BlockedInputMessaging field's value.

func (*UpdateGuardrailInput) SetBlockedOutputsMessaging added in v1.51.27

func (s *UpdateGuardrailInput) SetBlockedOutputsMessaging(v string) *UpdateGuardrailInput

SetBlockedOutputsMessaging sets the BlockedOutputsMessaging field's value.

func (*UpdateGuardrailInput) SetContentPolicyConfig added in v1.51.27

SetContentPolicyConfig sets the ContentPolicyConfig field's value.

func (*UpdateGuardrailInput) SetDescription added in v1.51.27

func (s *UpdateGuardrailInput) SetDescription(v string) *UpdateGuardrailInput

SetDescription sets the Description field's value.

func (*UpdateGuardrailInput) SetGuardrailIdentifier added in v1.51.27

func (s *UpdateGuardrailInput) SetGuardrailIdentifier(v string) *UpdateGuardrailInput

SetGuardrailIdentifier sets the GuardrailIdentifier field's value.

func (*UpdateGuardrailInput) SetKmsKeyId added in v1.51.27

SetKmsKeyId sets the KmsKeyId field's value.

func (*UpdateGuardrailInput) SetName added in v1.51.27

SetName sets the Name field's value.

func (*UpdateGuardrailInput) SetSensitiveInformationPolicyConfig added in v1.51.27

func (s *UpdateGuardrailInput) SetSensitiveInformationPolicyConfig(v *GuardrailSensitiveInformationPolicyConfig) *UpdateGuardrailInput

SetSensitiveInformationPolicyConfig sets the SensitiveInformationPolicyConfig field's value.

func (*UpdateGuardrailInput) SetTopicPolicyConfig added in v1.51.27

SetTopicPolicyConfig sets the TopicPolicyConfig field's value.

func (*UpdateGuardrailInput) SetWordPolicyConfig added in v1.51.27

SetWordPolicyConfig sets the WordPolicyConfig field's value.

func (UpdateGuardrailInput) String added in v1.51.27

func (s UpdateGuardrailInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateGuardrailInput) Validate added in v1.51.27

func (s *UpdateGuardrailInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateGuardrailOutput added in v1.51.27

type UpdateGuardrailOutput struct {

	// The ARN of the guardrail that was created.
	//
	// GuardrailArn is a required field
	GuardrailArn *string `locationName:"guardrailArn" type:"string" required:"true"`

	// The unique identifier of the guardrail
	//
	// GuardrailId is a required field
	GuardrailId *string `locationName:"guardrailId" type:"string" required:"true"`

	// The date and time at which the guardrail was updated.
	//
	// UpdatedAt is a required field
	UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// The version of the guardrail.
	//
	// Version is a required field
	Version *string `locationName:"version" min:"5" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateGuardrailOutput) GoString added in v1.51.27

func (s UpdateGuardrailOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateGuardrailOutput) SetGuardrailArn added in v1.51.27

func (s *UpdateGuardrailOutput) SetGuardrailArn(v string) *UpdateGuardrailOutput

SetGuardrailArn sets the GuardrailArn field's value.

func (*UpdateGuardrailOutput) SetGuardrailId added in v1.51.27

func (s *UpdateGuardrailOutput) SetGuardrailId(v string) *UpdateGuardrailOutput

SetGuardrailId sets the GuardrailId field's value.

func (*UpdateGuardrailOutput) SetUpdatedAt added in v1.51.27

SetUpdatedAt sets the UpdatedAt field's value.

func (*UpdateGuardrailOutput) SetVersion added in v1.51.27

SetVersion sets the Version field's value.

func (UpdateGuardrailOutput) String added in v1.51.27

func (s UpdateGuardrailOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateProvisionedModelThroughputInput added in v1.45.20

type UpdateProvisionedModelThroughputInput struct {

	// The Amazon Resource Name (ARN) of the new model to associate with this Provisioned
	// Throughput. You can't specify this field if this Provisioned Throughput is
	// associated with a base model.
	//
	// If this Provisioned Throughput is associated with a custom model, you can
	// specify one of the following options:
	//
	//    * The base model from which the custom model was customized.
	//
	//    * Another custom model that was customized from the same base model as
	//    the custom model.
	DesiredModelId *string `locationName:"desiredModelId" min:"1" type:"string"`

	// The new name for this Provisioned Throughput.
	DesiredProvisionedModelName *string `locationName:"desiredProvisionedModelName" min:"1" type:"string"`

	// The Amazon Resource Name (ARN) or name of the Provisioned Throughput to update.
	//
	// ProvisionedModelId is a required field
	ProvisionedModelId *string `location:"uri" locationName:"provisionedModelId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateProvisionedModelThroughputInput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateProvisionedModelThroughputInput) SetDesiredModelId added in v1.45.20

SetDesiredModelId sets the DesiredModelId field's value.

func (*UpdateProvisionedModelThroughputInput) SetDesiredProvisionedModelName added in v1.45.20

SetDesiredProvisionedModelName sets the DesiredProvisionedModelName field's value.

func (*UpdateProvisionedModelThroughputInput) SetProvisionedModelId added in v1.45.20

SetProvisionedModelId sets the ProvisionedModelId field's value.

func (UpdateProvisionedModelThroughputInput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateProvisionedModelThroughputInput) Validate added in v1.45.20

Validate inspects the fields of the type to determine if they are valid.

type UpdateProvisionedModelThroughputOutput added in v1.45.20

type UpdateProvisionedModelThroughputOutput struct {
	// contains filtered or unexported fields
}

func (UpdateProvisionedModelThroughputOutput) GoString added in v1.45.20

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (UpdateProvisionedModelThroughputOutput) String added in v1.45.20

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationDataConfig

type ValidationDataConfig struct {

	// Information about the validators.
	//
	// Validators is a required field
	Validators []*Validator `locationName:"validators" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Array of up to 10 validators.

func (ValidationDataConfig) GoString

func (s ValidationDataConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationDataConfig) SetValidators

func (s *ValidationDataConfig) SetValidators(v []*Validator) *ValidationDataConfig

SetValidators sets the Validators field's value.

func (ValidationDataConfig) String

func (s ValidationDataConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationDataConfig) Validate

func (s *ValidationDataConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ValidationException

type ValidationException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Input validation failed. Check your request parameters and retry the request.

func (*ValidationException) Code

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error

func (s *ValidationException) Error() string

func (ValidationException) GoString

func (s ValidationException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationException) Message

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String

func (s ValidationException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Validator

type Validator struct {

	// The S3 URI where the validation data is stored.
	//
	// S3Uri is a required field
	S3Uri *string `locationName:"s3Uri" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information about a validator.

func (Validator) GoString

func (s Validator) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Validator) SetS3Uri

func (s *Validator) SetS3Uri(v string) *Validator

SetS3Uri sets the S3Uri field's value.

func (Validator) String

func (s Validator) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Validator) Validate

func (s *Validator) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ValidatorMetric

type ValidatorMetric struct {

	// The validation loss associated with this validator.
	ValidationLoss *float64 `locationName:"validationLoss" type:"float"`
	// contains filtered or unexported fields
}

The metric for the validator.

func (ValidatorMetric) GoString

func (s ValidatorMetric) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidatorMetric) SetValidationLoss

func (s *ValidatorMetric) SetValidationLoss(v float64) *ValidatorMetric

SetValidationLoss sets the ValidationLoss field's value.

func (ValidatorMetric) String

func (s ValidatorMetric) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type VpcConfig

type VpcConfig struct {

	// VPC configuration security group Ids.
	//
	// SecurityGroupIds is a required field
	SecurityGroupIds []*string `locationName:"securityGroupIds" min:"1" type:"list" required:"true"`

	// VPC configuration subnets.
	//
	// SubnetIds is a required field
	SubnetIds []*string `locationName:"subnetIds" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

VPC configuration.

func (VpcConfig) GoString

func (s VpcConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*VpcConfig) SetSecurityGroupIds

func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*VpcConfig) SetSubnetIds

func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig

SetSubnetIds sets the SubnetIds field's value.

func (VpcConfig) String

func (s VpcConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*VpcConfig) Validate

func (s *VpcConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

Directories

Path Synopsis
Package bedrockiface provides an interface to enable mocking the Amazon Bedrock service client for testing your code.
Package bedrockiface provides an interface to enable mocking the Amazon Bedrock service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL