WorkloadIdentityProps

class aws_cdk.aws_bedrockagentcore.WorkloadIdentityProps(*, allowed_resource_oauth2_return_urls=None, tags=None, workload_identity_name=None)

Bases: object

Properties for a new {@link WorkloadIdentity}.

Parameters:
  • allowed_resource_oauth2_return_urls (Optional[Sequence[str]]) – Allowed OAuth2 return URLs for resources associated with this workload identity. Default: - no return URLs

  • tags (Optional[Mapping[str, str]]) – Tags for this workload identity. Default: - no tags

  • workload_identity_name (Optional[str]) – Name of the workload identity. Default: - a name generated by CDK

ExampleMetadata:

fixture=default infused

Example:

agentcore.WorkloadIdentity(self, "MyWorkloadIdentity",
    workload_identity_name="customer-support-agent-prod",
    allowed_resource_oauth2_return_urls=["https://app.example.com/oauth/callback"],
    tags={"team": "agents", "env": "prod"}
)

Attributes

allowed_resource_oauth2_return_urls

Allowed OAuth2 return URLs for resources associated with this workload identity.

Default:
  • no return URLs

tags

Tags for this workload identity.

Default:
  • no tags

workload_identity_name

Name of the workload identity.

Default:
  • a name generated by CDK