Class BedrockFunctionTarget
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BedrockFunctionTarget.Builder,BedrockFunctionTarget>
An Amazon Bedrock model to invoke. Elemental Inference invokes the model in your account by assuming the feed's access role, so a feed that runs this function must specify an accessRoleArn. The invocation is subject to your Amazon Bedrock quotas and appears on your bill.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BedrockApiapi()The Amazon Bedrock API to call.final StringThe Amazon Bedrock API to call.builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringmodel()The model to invoke.static Class<? extends BedrockFunctionTarget.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
api
The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.
If the service returns an enum value that is not available in the current SDK version,
apiwill returnBedrockApi.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromapiAsString().- Returns:
- The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.
- See Also:
-
apiAsString
The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.
If the service returns an enum value that is not available in the current SDK version,
apiwill returnBedrockApi.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromapiAsString().- Returns:
- The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.
- See Also:
-
model
The model to invoke. Specify one of the following:
-
A model ID.
-
An inference profile ID.
-
The ARN of a custom model.
-
The ARN of a provisioned model.
Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed.
The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can't accept a request that references media.frames.
- Returns:
- The model to invoke. Specify one of the following:
-
A model ID.
-
An inference profile ID.
-
The ARN of a custom model.
-
The ARN of a provisioned model.
Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed.
The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can't accept a request that references media.frames.
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<BedrockFunctionTarget.Builder,BedrockFunctionTarget> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-