mws_queue_topic_role_binding (Resource)
Заголовок раздела «mws_queue_topic_role_binding (Resource)»Role Binding (привязка роли) — назначение роли на уровне топика пользователю или сервисному аккаунту. Привязка определяет, какие действия обладатель роли может выполнить с этим топиком.
Примеры использования
Заголовок раздела «Примеры использования»resource "mws_iam_service_account" "reader" { service_account = var.service_account_name
metadata = { display_name = "Example Queue Topic Reader" }}
resource "mws_queue_topic" "example" { topic = var.topic_name
metadata = { display_name = "Example Queue Topic" description = "Managed Queue topic example" }
partition_count = 3
config = { "cleanup.policy" = "compact" "retention.ms" = "86400000" }}
resource "mws_queue_topic_role_binding" "example" { topic = mws_queue_topic.example.topic role_binding = var.role_binding_name role = "iam/roles/queue.consumer"
subject = { service_account = mws_iam_service_account.reader.metadata.id }
metadata = { display_name = "Example Queue Topic Role Binding" description = "Grants the service account read access to the topic" }}
variable "service_account_name" { type = string default = "example-topic-reader" description = "Service account name"}
variable "topic_name" { type = string default = "example-topic" description = "Queue topic name"}
variable "role_binding_name" { type = string default = "example-role-binding" description = "Queue topic role binding name"}Required
Заголовок раздела «Required»role(String) Роль, определяющая права субъекта на ресурсrole_binding(String) Название привязки роли для топикаsubject(Attributes) Субъект привязки роли — пользователь, сервисный аккаунт, группа пользователей или другая сущность, которой выдаются права. Должно быть заполнено ровно одно из полей (see below for nested schema)topic(String) Имя топика
Optional
Заголовок раздела «Optional»kind(String)metadata(Attributes) (see below for nested schema)project(String) Путь к проекту.support_request_id(String) Идентификатор запроса в службу поддержки, в рамках которого был создан биндингtimeouts(Attributes) (see below for nested schema)
Read-Only
Заголовок раздела «Read-Only»id(String) The ID of this resource.status(Attributes) Текущее состояние привязки роли, вычисляемое системой (see below for nested schema)
Nested Schema for subject
Заголовок раздела «Nested Schema for subject»Optional:
employee(String) Идентификатор пользователя backofficeservice_account(String) Идентификатор сервисного аккаунта, принадлежащего проектуservice_agent(String) Идентификатор сервисного агента, связанного с проектомuser(String) Идентификатор пользователяuser_federation(Attributes) Субъект федерации пользователей (see below for nested schema)user_group(String) Идентификатор группы пользователей
Nested Schema for subject.user_federation
Заголовок раздела «Nested Schema for subject.user_federation»Required:
id(String) Идентификатор федерации
Optional:
context(Attributes) Контекст федерации, уточняющий субъекта: конкретный пользователь федерации или атрибут, которым он должен обладать. Должно быть заполнено ровно одно из полей (see below for nested schema)
Nested Schema for subject.user_federation.context
Заголовок раздела «Nested Schema for subject.user_federation.context»Optional:
attribute(Attributes) Атрибут пользователя федерации в виде пары «имя — значение» (see below for nested schema)subject(String) Идентификатор субъекта федерации
Nested Schema for subject.user_federation.context.attribute
Заголовок раздела «Nested Schema for subject.user_federation.context.attribute»Required:
name(String) Имя атрибутаvalue(String) Значение атрибута
Nested Schema for metadata
Заголовок раздела «Nested Schema for metadata»Optional:
description(String) Описание ресурсаdisplay_name(String) Отображаемое имя. Необязательное поле, можно свободно задавать и изменять для удобства организации ресурсов
Read-Only:
create_time(String) Дата создания объекта
Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00
delete_time(String) Время запроса на удаление ресурса (не фактическое время удаления)
Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00
id(String) ID свойстваpurge_time(String) Время удаления ресурса
Дата в формате RFC3339. Пример: 2006-01-02T15:04:05Z07:00
usages(Attributes List) Связи с другими ресурсами. В зависимости от типа связи операции над ресурсом могут быть ограничены (see below for nested schema)
Nested Schema for metadata.usages
Заголовок раздела «Nested Schema for metadata.usages»Read-Only:
name(String) Имя связи. Требуется для модификации коллекцииresource(String) Ссылка на ресурсusage_type(String) Тип связи. Помимо стандартных “own” и “use” могут быть добавлены специализированные типы для конкретных сервисов
Nested Schema for timeouts
Заголовок раздела «Nested Schema for timeouts»Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).
Nested Schema for status
Заголовок раздела «Nested Schema for status»Read-Only:
ready(Attributes) Информация о статусе реконсиляции (see below for nested schema)
Nested Schema for status.ready
Заголовок раздела «Nested Schema for status.ready»Read-Only:
message(String) Описание статусаstate(String) Состояние ресурса