sagemaker:InvokeEndpointWithResponseStream

Read

sagemaker:InvokeEndpointWithResponseStream is a Read access-level action in the sagemaker service. Grants permission to get the inference response as a stream from the specified endpoint

Resource types

ARNs that sagemaker:InvokeEndpointWithResponseStream can be scoped to in an IAM policy.

arn:${Partition}:sagemaker:${Region}:${Account}:endpoint/${EndpointName}
endpoint
arn:${Partition}:sagemaker:${Region}:${Account}:inference-component/${InferenceComponentName}
inference-component

Condition keys

Keys you can use in the Condition block of a policy that grants sagemaker:InvokeEndpointWithResponseStream.

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

sagemaker:ResourceTag/${TagKey} String

Filters access by a tag key and value pair

Example IAM policy

A minimal policy that allows sagemaker:InvokeEndpointWithResponseStream. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSagemakerInvokeEndpointWithResponseStream",
      "Effect": "Allow",
      "Action": "sagemaker:InvokeEndpointWithResponseStream",
      "Resource": "*"
    }
  ]
}

Related actions in sagemaker

View all sagemaker actions →