CfnWorkspacePropsMixin

class aws_cdk.cfn_property_mixins.aws_awsexternalanthropic.CfnWorkspacePropsMixin(props, *, strategy=None)

Bases: Mixin

Resource type definition for AWS::AWSExternalAnthropic::Workspace.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-awsexternalanthropic-workspace.html

CloudformationResource:

AWS::AWSExternalAnthropic::Workspace

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.cfn_property_mixins import aws_awsexternalanthropic as awsexternalanthropic
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_workspace_props_mixin = awsexternalanthropic.CfnWorkspacePropsMixin(awsexternalanthropic.CfnWorkspaceMixinProps(
    data_residency=awsexternalanthropic.CfnWorkspacePropsMixin.DataResidencyProperty(
        allowed_inference_geos=["allowedInferenceGeos"],
        default_inference_geo="defaultInferenceGeo",
        workspace_geo="workspaceGeo"
    ),
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::AWSExternalAnthropic::Workspace.

Parameters:
  • props (Union[CfnWorkspaceMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['dataResidency', 'name', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

DataResidencyProperty

class CfnWorkspacePropsMixin.DataResidencyProperty(*, allowed_inference_geos=None, default_inference_geo=None, workspace_geo=None)

Bases: object

Data residency configuration for the workspace.

WorkspaceGeo is immutable after creation.

Parameters:
  • allowed_inference_geos (Optional[Sequence[str]]) – Permitted inference geo values. Omit to allow all geos (the service default of ‘unrestricted’); otherwise list specific geos.

  • default_inference_geo (Optional[str]) – Default inference geo applied when requests omit the parameter. Defaults to ‘global’ if omitted. Must be a member of AllowedInferenceGeos unless AllowedInferenceGeos is omitted.

  • workspace_geo (Optional[str]) – Geographic region for workspace data storage. Immutable after creation. Defaults to ‘us’ if omitted.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-awsexternalanthropic-workspace-dataresidency.html

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.cfn_property_mixins import aws_awsexternalanthropic as awsexternalanthropic

data_residency_property = awsexternalanthropic.CfnWorkspacePropsMixin.DataResidencyProperty(
    allowed_inference_geos=["allowedInferenceGeos"],
    default_inference_geo="defaultInferenceGeo",
    workspace_geo="workspaceGeo"
)

Attributes

allowed_inference_geos

Permitted inference geo values.

Omit to allow all geos (the service default of ‘unrestricted’); otherwise list specific geos.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-awsexternalanthropic-workspace-dataresidency.html#cfn-awsexternalanthropic-workspace-dataresidency-allowedinferencegeos

default_inference_geo

Default inference geo applied when requests omit the parameter.

Defaults to ‘global’ if omitted. Must be a member of AllowedInferenceGeos unless AllowedInferenceGeos is omitted.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-awsexternalanthropic-workspace-dataresidency.html#cfn-awsexternalanthropic-workspace-dataresidency-defaultinferencegeo

workspace_geo

Geographic region for workspace data storage.

Immutable after creation. Defaults to ‘us’ if omitted.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-awsexternalanthropic-workspace-dataresidency.html#cfn-awsexternalanthropic-workspace-dataresidency-workspacegeo