ModelAttributes
- class aws_cdk.aws_sagemaker_alpha.ModelAttributes(*, model_arn, role=None, security_groups=None)
Bases:
object
(experimental) Represents a Model resource defined outside this stack.
- Parameters:
model_arn (
str
) – (experimental) The ARN of this model.role (
Optional
[IRole
]) – (experimental) The IAM execution role associated with this model. Default: - When not provided, any role-related operations will no-op.security_groups (
Optional
[Sequence
[ISecurityGroup
]]) – (experimental) The security groups for this model, if in a VPC. Default: - When not provided, the connections to/from this model cannot be managed.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_sagemaker_alpha as sagemaker_alpha from aws_cdk import aws_ec2 as ec2 from aws_cdk import aws_iam as iam # role: iam.Role # security_group: ec2.SecurityGroup model_attributes = sagemaker_alpha.ModelAttributes( model_arn="modelArn", # the properties below are optional role=role, security_groups=[security_group] )
Attributes
- model_arn
(experimental) The ARN of this model.
- Stability:
experimental
- role
(experimental) The IAM execution role associated with this model.
- Default:
When not provided, any role-related operations will no-op.
- Stability:
experimental
- security_groups
(experimental) The security groups for this model, if in a VPC.
- Default:
When not provided, the connections to/from this model cannot be managed.
- Stability:
experimental