Skip to content

Type definitions#

Index > Bedrock > Type definitions

Auto-generated documentation for Bedrock type annotations stubs module mypy-boto3-bedrock.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

VpcConfigUnionTypeDef#

# VpcConfigUnionTypeDef definition

VpcConfigUnionTypeDef = Union[
    VpcConfigTypeDef,  # (1)
    VpcConfigOutputTypeDef,  # (2)
]
  1. See VpcConfigTypeDef
  2. See VpcConfigOutputTypeDef

ValidationDataConfigUnionTypeDef#

# ValidationDataConfigUnionTypeDef definition

ValidationDataConfigUnionTypeDef = Union[
    ValidationDataConfigTypeDef,  # (1)
    ValidationDataConfigOutputTypeDef,  # (2)
]
  1. See ValidationDataConfigTypeDef
  2. See ValidationDataConfigOutputTypeDef

EvaluationInferenceConfigUnionTypeDef#

# EvaluationInferenceConfigUnionTypeDef definition

EvaluationInferenceConfigUnionTypeDef = Union[
    EvaluationInferenceConfigTypeDef,  # (1)
    EvaluationInferenceConfigOutputTypeDef,  # (2)
]
  1. See EvaluationInferenceConfigTypeDef
  2. See EvaluationInferenceConfigOutputTypeDef

EvaluationConfigUnionTypeDef#

# EvaluationConfigUnionTypeDef definition

EvaluationConfigUnionTypeDef = Union[
    EvaluationConfigTypeDef,  # (1)
    EvaluationConfigOutputTypeDef,  # (2)
]
  1. See EvaluationConfigTypeDef
  2. See EvaluationConfigOutputTypeDef

S3ConfigTypeDef#

# S3ConfigTypeDef definition

class S3ConfigTypeDef(TypedDict):
    bucketName: str,
    keyPrefix: NotRequired[str],

EvaluationOutputDataConfigTypeDef#

# EvaluationOutputDataConfigTypeDef definition

class EvaluationOutputDataConfigTypeDef(TypedDict):
    s3Uri: str,

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    key: str,
    value: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

CreateGuardrailVersionRequestRequestTypeDef#

# CreateGuardrailVersionRequestRequestTypeDef definition

class CreateGuardrailVersionRequestRequestTypeDef(TypedDict):
    guardrailIdentifier: str,
    description: NotRequired[str],
    clientRequestToken: NotRequired[str],

OutputDataConfigTypeDef#

# OutputDataConfigTypeDef definition

class OutputDataConfigTypeDef(TypedDict):
    s3Uri: str,

TrainingDataConfigTypeDef#

# TrainingDataConfigTypeDef definition

class TrainingDataConfigTypeDef(TypedDict):
    s3Uri: str,

VpcConfigTypeDef#

# VpcConfigTypeDef definition

class VpcConfigTypeDef(TypedDict):
    subnetIds: Sequence[str],
    securityGroupIds: Sequence[str],

CustomModelSummaryTypeDef#

# CustomModelSummaryTypeDef definition

class CustomModelSummaryTypeDef(TypedDict):
    modelArn: str,
    modelName: str,
    creationTime: datetime,
    baseModelArn: str,
    baseModelName: str,
    customizationType: NotRequired[CustomizationTypeType],  # (1)
  1. See CustomizationTypeType

DeleteCustomModelRequestRequestTypeDef#

# DeleteCustomModelRequestRequestTypeDef definition

class DeleteCustomModelRequestRequestTypeDef(TypedDict):
    modelIdentifier: str,

DeleteGuardrailRequestRequestTypeDef#

# DeleteGuardrailRequestRequestTypeDef definition

class DeleteGuardrailRequestRequestTypeDef(TypedDict):
    guardrailIdentifier: str,
    guardrailVersion: NotRequired[str],

DeleteProvisionedModelThroughputRequestRequestTypeDef#

# DeleteProvisionedModelThroughputRequestRequestTypeDef definition

class DeleteProvisionedModelThroughputRequestRequestTypeDef(TypedDict):
    provisionedModelId: str,

EvaluationBedrockModelTypeDef#

# EvaluationBedrockModelTypeDef definition

class EvaluationBedrockModelTypeDef(TypedDict):
    modelIdentifier: str,
    inferenceParams: str,

EvaluationDatasetLocationTypeDef#

# EvaluationDatasetLocationTypeDef definition

class EvaluationDatasetLocationTypeDef(TypedDict):
    s3Uri: NotRequired[str],

EvaluationSummaryTypeDef#

# EvaluationSummaryTypeDef definition

class EvaluationSummaryTypeDef(TypedDict):
    jobArn: str,
    jobName: str,
    status: EvaluationJobStatusType,  # (1)
    creationTime: datetime,
    jobType: EvaluationJobTypeType,  # (2)
    evaluationTaskTypes: List[EvaluationTaskTypeType],  # (3)
    modelIdentifiers: List[str],
  1. See EvaluationJobStatusType
  2. See EvaluationJobTypeType
  3. See EvaluationTaskTypeType

FoundationModelLifecycleTypeDef#

# FoundationModelLifecycleTypeDef definition

class FoundationModelLifecycleTypeDef(TypedDict):
    status: FoundationModelLifecycleStatusType,  # (1)
  1. See FoundationModelLifecycleStatusType

GetCustomModelRequestRequestTypeDef#

# GetCustomModelRequestRequestTypeDef definition

class GetCustomModelRequestRequestTypeDef(TypedDict):
    modelIdentifier: str,

TrainingMetricsTypeDef#

# TrainingMetricsTypeDef definition

class TrainingMetricsTypeDef(TypedDict):
    trainingLoss: NotRequired[float],

ValidatorMetricTypeDef#

# ValidatorMetricTypeDef definition

class ValidatorMetricTypeDef(TypedDict):
    validationLoss: NotRequired[float],

GetEvaluationJobRequestRequestTypeDef#

# GetEvaluationJobRequestRequestTypeDef definition

class GetEvaluationJobRequestRequestTypeDef(TypedDict):
    jobIdentifier: str,

GetFoundationModelRequestRequestTypeDef#

# GetFoundationModelRequestRequestTypeDef definition

class GetFoundationModelRequestRequestTypeDef(TypedDict):
    modelIdentifier: str,

GetGuardrailRequestRequestTypeDef#

# GetGuardrailRequestRequestTypeDef definition

class GetGuardrailRequestRequestTypeDef(TypedDict):
    guardrailIdentifier: str,
    guardrailVersion: NotRequired[str],

GetModelCustomizationJobRequestRequestTypeDef#

# GetModelCustomizationJobRequestRequestTypeDef definition

class GetModelCustomizationJobRequestRequestTypeDef(TypedDict):
    jobIdentifier: str,

VpcConfigOutputTypeDef#

# VpcConfigOutputTypeDef definition

class VpcConfigOutputTypeDef(TypedDict):
    subnetIds: List[str],
    securityGroupIds: List[str],

GetProvisionedModelThroughputRequestRequestTypeDef#

# GetProvisionedModelThroughputRequestRequestTypeDef definition

class GetProvisionedModelThroughputRequestRequestTypeDef(TypedDict):
    provisionedModelId: str,

GuardrailContentFilterConfigTypeDef#

# GuardrailContentFilterConfigTypeDef definition

class GuardrailContentFilterConfigTypeDef(TypedDict):
    type: GuardrailContentFilterTypeType,  # (1)
    inputStrength: GuardrailFilterStrengthType,  # (2)
    outputStrength: GuardrailFilterStrengthType,  # (2)
  1. See GuardrailContentFilterTypeType
  2. See GuardrailFilterStrengthType
  3. See GuardrailFilterStrengthType

GuardrailContentFilterTypeDef#

# GuardrailContentFilterTypeDef definition

class GuardrailContentFilterTypeDef(TypedDict):
    type: GuardrailContentFilterTypeType,  # (1)
    inputStrength: GuardrailFilterStrengthType,  # (2)
    outputStrength: GuardrailFilterStrengthType,  # (2)
  1. See GuardrailContentFilterTypeType
  2. See GuardrailFilterStrengthType
  3. See GuardrailFilterStrengthType

GuardrailManagedWordsConfigTypeDef#

# GuardrailManagedWordsConfigTypeDef definition

class GuardrailManagedWordsConfigTypeDef(TypedDict):
    type: GuardrailManagedWordsTypeType,  # (1)
  1. See GuardrailManagedWordsTypeType

GuardrailManagedWordsTypeDef#