Schemas

2020/04/30 - Schemas - 3 new api methods

Changes  Add support for resource policies for Amazon EventBridge Schema Registry, which is now generally available.

PutResourcePolicy (new) Link ¶

The name of the policy.

See also: AWS API Documentation

Request Syntax

client.put_resource_policy(
    Policy='string',
    RegistryName='string',
    RevisionId='string'
)
type Policy

string

param Policy

[REQUIRED]

The resource-based policy.

type RegistryName

string

param RegistryName

The name of the registry.

type RevisionId

string

param RevisionId

The revision ID of the policy.

rtype

dict

returns

Response Syntax

{
    'Policy': 'string',
    'RevisionId': 'string'
}

Response Structure

  • (dict) --

    200 response

    • Policy (string) --

      The resource-based policy.

    • RevisionId (string) --

      The revision ID of the policy.

DeleteResourcePolicy (new) Link ¶

Delete the resource-based policy attached to the specified registry.

See also: AWS API Documentation

Request Syntax

client.delete_resource_policy(
    RegistryName='string'
)
type RegistryName

string

param RegistryName

The name of the registry.

returns

None

GetResourcePolicy (new) Link ¶

Retrieves the resource-based policy attached to a given registry.

See also: AWS API Documentation

Request Syntax

client.get_resource_policy(
    RegistryName='string'
)
type RegistryName

string

param RegistryName

The name of the registry.

rtype

dict

returns

Response Syntax

{
    'Policy': 'string',
    'RevisionId': 'string'
}

Response Structure

  • (dict) --

    Get Resource-Based Policy Response

    • Policy (string) --

      The resource-based policy.

    • RevisionId (string) --

      The revision ID.