Skip to content

Literals#

Index > BedrockRuntime > Literals

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

ConversationRoleType#

# ConversationRoleType usage example

from mypy_boto3_bedrock_runtime.literals import ConversationRoleType

def get_value() -> ConversationRoleType:
    return "assistant"
# ConversationRoleType definition

ConversationRoleType = Literal[
    "assistant",
    "user",
]

DocumentFormatType#

# DocumentFormatType usage example

from mypy_boto3_bedrock_runtime.literals import DocumentFormatType

def get_value() -> DocumentFormatType:
    return "csv"
# DocumentFormatType definition

DocumentFormatType = Literal[
    "csv",
    "doc",
    "docx",
    "html",
    "md",
    "pdf",
    "txt",
    "xls",
    "xlsx",
]

GuardrailActionType#

# GuardrailActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailActionType

def get_value() -> GuardrailActionType:
    return "GUARDRAIL_INTERVENED"
# GuardrailActionType definition

GuardrailActionType = Literal[
    "GUARDRAIL_INTERVENED",
    "NONE",
]

GuardrailContentFilterConfidenceType#

# GuardrailContentFilterConfidenceType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContentFilterConfidenceType

def get_value() -> GuardrailContentFilterConfidenceType:
    return "HIGH"
# GuardrailContentFilterConfidenceType definition

GuardrailContentFilterConfidenceType = Literal[
    "HIGH",
    "LOW",
    "MEDIUM",
    "NONE",
]

GuardrailContentFilterTypeType#

# GuardrailContentFilterTypeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContentFilterTypeType

def get_value() -> GuardrailContentFilterTypeType:
    return "HATE"
# GuardrailContentFilterTypeType definition

GuardrailContentFilterTypeType = Literal[
    "HATE",
    "INSULTS",
    "MISCONDUCT",
    "PROMPT_ATTACK",
    "SEXUAL",
    "VIOLENCE",
]

GuardrailContentPolicyActionType#

# GuardrailContentPolicyActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContentPolicyActionType

def get_value() -> GuardrailContentPolicyActionType:
    return "BLOCKED"
# GuardrailContentPolicyActionType definition

GuardrailContentPolicyActionType = Literal[
    "BLOCKED",
]

GuardrailContentQualifierType#

# GuardrailContentQualifierType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContentQualifierType

def get_value() -> GuardrailContentQualifierType:
    return "grounding_source"
# GuardrailContentQualifierType definition

GuardrailContentQualifierType = Literal[
    "grounding_source",
    "guard_content",
    "query",
]

GuardrailContentSourceType#

# GuardrailContentSourceType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContentSourceType

def get_value() -> GuardrailContentSourceType:
    return "INPUT"
# GuardrailContentSourceType definition

GuardrailContentSourceType = Literal[
    "INPUT",
    "OUTPUT",
]

GuardrailContextualGroundingFilterTypeType#

# GuardrailContextualGroundingFilterTypeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContextualGroundingFilterTypeType

def get_value() -> GuardrailContextualGroundingFilterTypeType:
    return "GROUNDING"
# GuardrailContextualGroundingFilterTypeType definition

GuardrailContextualGroundingFilterTypeType = Literal[
    "GROUNDING",
    "RELEVANCE",
]

GuardrailContextualGroundingPolicyActionType#

# GuardrailContextualGroundingPolicyActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailContextualGroundingPolicyActionType

def get_value() -> GuardrailContextualGroundingPolicyActionType:
    return "BLOCKED"
# GuardrailContextualGroundingPolicyActionType definition

GuardrailContextualGroundingPolicyActionType = Literal[
    "BLOCKED",
    "NONE",
]

GuardrailConverseContentQualifierType#

# GuardrailConverseContentQualifierType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailConverseContentQualifierType

def get_value() -> GuardrailConverseContentQualifierType:
    return "grounding_source"
# GuardrailConverseContentQualifierType definition

GuardrailConverseContentQualifierType = Literal[
    "grounding_source",
    "guard_content",
    "query",
]

GuardrailManagedWordTypeType#

# GuardrailManagedWordTypeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailManagedWordTypeType

def get_value() -> GuardrailManagedWordTypeType:
    return "PROFANITY"
# GuardrailManagedWordTypeType definition

GuardrailManagedWordTypeType = Literal[
    "PROFANITY",
]

GuardrailPiiEntityTypeType#

# GuardrailPiiEntityTypeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailPiiEntityTypeType

def get_value() -> GuardrailPiiEntityTypeType:
    return "ADDRESS"
# GuardrailPiiEntityTypeType definition

GuardrailPiiEntityTypeType = Literal[
    "ADDRESS",
    "AGE",
    "AWS_ACCESS_KEY",
    "AWS_SECRET_KEY",
    "CA_HEALTH_NUMBER",
    "CA_SOCIAL_INSURANCE_NUMBER",
    "CREDIT_DEBIT_CARD_CVV",
    "CREDIT_DEBIT_CARD_EXPIRY",
    "CREDIT_DEBIT_CARD_NUMBER",
    "DRIVER_ID",
    "EMAIL",
    "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
    "IP_ADDRESS",
    "LICENSE_PLATE",
    "MAC_ADDRESS",
    "NAME",
    "PASSWORD",
    "PHONE",
    "PIN",
    "SWIFT_CODE",
    "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
    "UK_NATIONAL_INSURANCE_NUMBER",
    "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
    "URL",
    "US_BANK_ACCOUNT_NUMBER",
    "US_BANK_ROUTING_NUMBER",
    "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
    "US_PASSPORT_NUMBER",
    "US_SOCIAL_SECURITY_NUMBER",
    "USERNAME",
    "VEHICLE_IDENTIFICATION_NUMBER",
]

GuardrailSensitiveInformationPolicyActionType#

# GuardrailSensitiveInformationPolicyActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailSensitiveInformationPolicyActionType

def get_value() -> GuardrailSensitiveInformationPolicyActionType:
    return "ANONYMIZED"
# GuardrailSensitiveInformationPolicyActionType definition

GuardrailSensitiveInformationPolicyActionType = Literal[
    "ANONYMIZED",
    "BLOCKED",
]

GuardrailStreamProcessingModeType#

# GuardrailStreamProcessingModeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailStreamProcessingModeType

def get_value() -> GuardrailStreamProcessingModeType:
    return "async"
# GuardrailStreamProcessingModeType definition

GuardrailStreamProcessingModeType = Literal[
    "async",
    "sync",
]

GuardrailTopicPolicyActionType#

# GuardrailTopicPolicyActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailTopicPolicyActionType

def get_value() -> GuardrailTopicPolicyActionType:
    return "BLOCKED"
# GuardrailTopicPolicyActionType definition

GuardrailTopicPolicyActionType = Literal[
    "BLOCKED",
]

GuardrailTopicTypeType#

# GuardrailTopicTypeType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailTopicTypeType

def get_value() -> GuardrailTopicTypeType:
    return "DENY"
# GuardrailTopicTypeType definition

GuardrailTopicTypeType = Literal[
    "DENY",
]

GuardrailTraceType#

# GuardrailTraceType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailTraceType

def get_value() -> GuardrailTraceType:
    return "disabled"
# GuardrailTraceType definition

GuardrailTraceType = Literal[
    "disabled",
    "enabled",
]

GuardrailWordPolicyActionType#

# GuardrailWordPolicyActionType usage example

from mypy_boto3_bedrock_runtime.literals import GuardrailWordPolicyActionType

def get_value() -> GuardrailWordPolicyActionType:
    return "BLOCKED"
# GuardrailWordPolicyActionType definition

GuardrailWordPolicyActionType = Literal[
    "BLOCKED",
]

ImageFormatType#

# ImageFormatType usage example

from mypy_boto3_bedrock_runtime.literals import ImageFormatType

def get_value() -> ImageFormatType:
    return "gif"
# ImageFormatType definition

ImageFormatType = Literal[
    "gif",
    "jpeg",
    "png",
    "webp",
]

StopReasonType#

# StopReasonType usage example

from mypy_boto3_bedrock_runtime.literals import StopReasonType

def get_value() -> StopReasonType:
    return "content_filtered"
# StopReasonType definition

StopReasonType = Literal[
    "content_filtered",
    "end_turn",
    "guardrail_intervened",
    "max_tokens",
    "stop_sequence",
    "tool_use",
]

ToolResultStatusType#

# ToolResultStatusType usage example

from mypy_boto3_bedrock_runtime.literals import ToolResultStatusType

def get_value() -> ToolResultStatusType:
    return "error"
# ToolResultStatusType definition

ToolResultStatusType = Literal[
    "error",
    "success",
]

TraceType#

# TraceType usage example

from mypy_boto3_bedrock_runtime.literals import TraceType

def get_value() -> TraceType:
    return "DISABLED"
# TraceType definition

TraceType = Literal[
    "DISABLED",
    "ENABLED",
]

BedrockRuntimeServiceName#

# BedrockRuntimeServiceName usage example

from mypy_boto3_bedrock_runtime.literals import BedrockRuntimeServiceName

def get_value() -> BedrockRuntimeServiceName:
    return "bedrock-runtime"
# BedrockRuntimeServiceName definition

BedrockRuntimeServiceName = Literal[
    "bedrock-runtime",
]

ServiceName#

# ServiceName usage example

from mypy_boto3_bedrock_runtime.literals import ServiceName

def get_value() -> ServiceName:
    return "accessanalyzer"
# ServiceName definition

ServiceName = Literal[
    "accessanalyzer",
    "account",
    "acm",
    "acm-pca",
    "amp",
    "amplify",
    "amplifybackend",
    "amplifyuibuilder",
    "apigateway",
    "apigatewaymanagementapi",
    "apigatewayv2",
    "appconfig",
    "appconfigdata",
    "appfabric",
    "appflow",
    "appintegrations",
    "application-autoscaling",
    "application-insights",
    "application-signals",
    "applicationcostprofiler",
    "appmesh",
    "apprunner",
    "appstream",
    "appsync",
    "apptest",
    "arc-zonal-shift",
    "artifact",
    "athena",
    "auditmanager",
    "autoscaling",
    "autoscaling-plans",
    "b2bi",
    "backup",
    "backup-gateway",
    "batch",
    "bcm-data-exports",
    "bedrock",
    "bedrock-agent",
    "bedrock-agent-runtime",
    "bedrock-runtime",
    "billingconductor",
    "braket",
    "budgets",
    "ce",
    "chatbot",
    "chime",
    "chime-sdk-identity",
    "chime-sdk-media-pipelines",
    "chime-sdk-meetings",
    "chime-sdk-messaging",
    "chime-sdk-voice",
    "cleanrooms",
    "cleanroomsml",
    "cloud9",
    "cloudcontrol",
    "clouddirectory",
    "cloudformation",
    "cloudfront",
    "cloudfront-keyvaluestore",
    "cloudhsm",
    "cloudhsmv2",
    "cloudsearch",
    "cloudsearchdomain",
    "cloudtrail",
    "cloudtrail-data",
    "cloudwatch",
    "codeartifact",
    "codebuild",
    "codecatalyst",
    "codecommit",
    "codeconnections",
    "codedeploy",
    "codeguru-reviewer",
    "codeguru-security",
    "codeguruprofiler",
    "codepipeline",
    "codestar",
    "codestar-connections",
    "codestar-notifications",
    "cognito-identity",
    "cognito-idp",
    "cognito-sync",
    "comprehend",
    "comprehendmedical",
    "compute-optimizer",
    "config",
    "connect",
    "connect-contact-lens",
    "connectcampaigns",
    "connectcases",
    "connectparticipant",
    "controlcatalog",
    "controltower",
    "cost-optimization-hub",
    "cur",
    "customer-profiles",
    "databrew",
    "dataexchange",
    "datapipeline",
    "datasync",
    "datazone",
    "dax",
    "deadline",
    "detective",
    "devicefarm",
    "devops-guru",
    "directconnect",
    "discovery",
    "dlm",
    "dms",
    "docdb",
    "docdb-elastic",
    "drs",
    "ds",
    "dynamodb",
    "dynamodbstreams",
    "ebs",
    "ec2",
    "ec2-instance-connect",
    "ecr",
    "ecr-public",
    "ecs",
    "efs",
    "eks",
    "eks-auth",
    "elastic-inference",
    "elasticache",
    "elasticbeanstalk",
    "elastictranscoder",
    "elb",
    "elbv2",
    "emr",
    "emr-containers",
    "emr-serverless",
    "entityresolution",
    "es",
    "events",
    "evidently",
    "finspace",
    "finspace-data",
    "firehose",
    "fis",
    "fms",
    "forecast",
    "forecastquery",
    "frauddetector",
    "freetier",
    "fsx",
    "gamelift",
    "glacier",
    "globalaccelerator",
    "glue",
    "grafana",
    "greengrass",
    "greengrassv2",
    "groundstation",
    "guardduty",
    "health",
    "healthlake",
    "iam",
    "identitystore",
    "imagebuilder",
    "importexport",
    "inspector",
    "inspector-scan",
    "inspector2",
    "internetmonitor",
    "iot",
    "iot-data",
    "iot-jobs-data",
    "iot1click-devices",
    "iot1click-projects",
    "iotanalytics",
    "iotdeviceadvisor",
    "iotevents",
    "iotevents-data",
    "iotfleethub",
    "iotfleetwise",
    "iotsecuretunneling",
    "iotsitewise",
    "iotthingsgraph",
    "iottwinmaker",
    "iotwireless",
    "ivs",
    "ivs-realtime",
    "ivschat",
    "kafka",
    "kafkaconnect",
    "kendra",
    "kendra-ranking",
    "keyspaces",
    "kinesis",
    "kinesis-video-archived-media",
    "kinesis-video-media",
    "kinesis-video-signaling",
    "kinesis-video-webrtc-storage",
    "kinesisanalytics",
    "kinesisanalyticsv2",
    "kinesisvideo",
    "kms",
    "lakeformation",
    "lambda",
    "launch-wizard",
    "lex-models",
    "lex-runtime",
    "lexv2-models",
    "lexv2-runtime",
    "license-manager",
    "license-manager-linux-subscriptions",
    "license-manager-user-subscriptions",
    "lightsail",
    "location",
    "logs",
    "lookoutequipment",
    "lookoutmetrics",
    "lookoutvision",
    "m2",
    "machinelearning",
    "macie2",
    "mailmanager",
    "managedblockchain",
    "managedblockchain-query",
    "marketplace-agreement",
    "marketplace-catalog",
    "marketplace-deployment",
    "marketplace-entitlement",
    "marketplacecommerceanalytics",
    "mediaconnect",
    "mediaconvert",
    "medialive",
    "mediapackage",
    "mediapackage-vod",
    "mediapackagev2",
    "mediastore",
    "mediastore-data",
    "mediatailor",
    "medical-imaging",
    "memorydb",
    "meteringmarketplace",
    "mgh",
    "mgn",
    "migration-hub-refactor-spaces",
    "migrationhub-config",
    "migrationhuborchestrator",
    "migrationhubstrategy",
    "mq",
    "mturk",
    "mwaa",
    "neptune",
    "neptune-graph",
    "neptunedata",
    "network-firewall",
    "networkmanager",
    "networkmonitor",
    "nimble",
    "oam",
    "omics",
    "opensearch",
    "opensearchserverless",
    "opsworks",
    "opsworkscm",
    "organizations",
    "osis",
    "outposts",
    "panorama",
    "payment-cryptography",
    "payment-cryptography-data",
    "pca-connector-ad",
    "pca-connector-scep",
    "personalize",
    "personalize-events",
    "personalize-runtime",
    "pi",
    "pinpoint",
    "pinpoint-email",
    "pinpoint-sms-voice",
    "pinpoint-sms-voice-v2",
    "pipes",
    "polly",
    "pricing",
    "privatenetworks",
    "proton",
    "qapps",
    "qbusiness",
    "qconnect",
    "qldb",
    "qldb-session",
    "quicksight",
    "ram",
    "rbin",
    "rds",
    "rds-data",
    "redshift",
    "redshift-data",
    "redshift-serverless",
    "rekognition",
    "repostspace",
    "resiliencehub",
    "resource-explorer-2",
    "resource-groups",
    "resourcegroupstaggingapi",
    "robomaker",
    "rolesanywhere",
    "route53",
    "route53-recovery-cluster",
    "route53-recovery-control-config",
    "route53-recovery-readiness",
    "route53domains",
    "route53profiles",
    "route53resolver",
    "rum",
    "s3",
    "s3control",
    "s3outposts",
    "sagemaker",
    "sagemaker-a2i-runtime",
    "sagemaker-edge",
    "sagemaker-featurestore-runtime",
    "sagemaker-geospatial",
    "sagemaker-metrics",
    "sagemaker-runtime",
    "savingsplans",
    "scheduler",
    "schemas",
    "sdb",
    "secretsmanager",
    "securityhub",
    "securitylake",
    "serverlessrepo",
    "service-quotas",
    "servicecatalog",
    "servicecatalog-appregistry",
    "servicediscovery",
    "ses",
    "sesv2",
    "shield",
    "signer",
    "simspaceweaver",
    "sms",
    "sms-voice",
    "snow-device-management",
    "snowball",
    "sns",
    "sqs",
    "ssm",
    "ssm-contacts",
    "ssm-incidents",
    "ssm-sap",
    "sso",
    "sso-admin",
    "sso-oidc",
    "stepfunctions",
    "storagegateway",
    "sts",
    "supplychain",
    "support",
    "support-app",
    "swf",
    "synthetics",
    "taxsettings",
    "textract",
    "timestream-influxdb",
    "timestream-query",
    "timestream-write",
    "tnb",
    "transcribe",
    "transfer",
    "translate",
    "trustedadvisor",
    "verifiedpermissions",
    "voice-id",
    "vpc-lattice",
    "waf",
    "waf-regional",
    "wafv2",
    "wellarchitected",
    "wisdom",
    "workdocs",
    "worklink",
    "workmail",
    "workmailmessageflow",
    "workspaces",
    "workspaces-thin-client",
    "workspaces-web",
    "xray",
]

ResourceServiceName#

# ResourceServiceName usage example

from mypy_boto3_bedrock_runtime.literals import ResourceServiceName

def get_value() -> ResourceServiceName:
    return "cloudformation"
# ResourceServiceName definition

ResourceServiceName = Literal[
    "cloudformation",
    "cloudwatch",
    "dynamodb",
    "ec2",
    "glacier",
    "iam",
    "opsworks",
    "s3",
    "sns",
    "sqs",
]