CfnAgentLogsMixin
- class aws_cdk.mixins_preview.aws_bedrock.mixins.CfnAgentLogsMixin(log_type, log_delivery)
Bases:
MixinSpecifies an agent as a resource in a top-level template. Minimally, you must specify the following properties:.
AgentName – Specify a name for the agent.
AgentResourceRoleArn – Specify the Amazon Resource Name (ARN) of the service role with permissions to invoke API operations on the agent. For more information, see Create a service role for Agents for Amazon Bedrock .
FoundationModel – Specify the model ID of a foundation model to use when invoking the agent. For more information, see Supported regions and models for Agents for Amazon Bedrock .
For more information about using agents in Amazon Bedrock , see Agents for Amazon Bedrock .
See the Properties section below for descriptions of both the required and optional properties.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html
- CloudformationResource:
AWS::Bedrock::Agent
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_bedrock import mixins as bedrock_mixins # logs_delivery: logs.ILogsDelivery cfn_agent_logs_mixin = bedrock_mixins.CfnAgentLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::Bedrock::Agent.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery destination and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- APPLICATION_LOGS = <aws_cdk.mixins_preview.aws_bedrock.mixins.CfnAgentApplicationLogs object>
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental