C# Класс Amazon.Auth.AccessControlPolicy.Principal

A principal is an AWS account which is being allowed or denied access to a resource through an access control policy. The principal is a property of the Statement object, not directly the Amazon.Auth.AccessControlPolicy.Policy object.

The principal is A in the statement "A has permission to do B to C where D applies."

In an access control policy statement, you can set the principal to all authenticated AWS users through the Amazon.Auth.AccessControlPolicy.Principal.AllUsers member. This is useful when you don't want to restrict access based on the identity of the requester, but instead on other identifying characteristics such as the requester's IP address.

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AllUsers Principal
Anonymous Principal

Открытые методы

Метод Описание
Principal ( string accountId ) : System

Constructs a new principal with the specified AWS account ID.

Principal ( string provider, string id ) : System

Constructs a new principal with the specified provider and id

Principal ( string provider, string id, bool stripHyphen ) : System

Constructs a new principal with the specified provider and id and optionally strips hyphens from the id

Описание методов

Principal() публичный Метод

Constructs a new principal with the specified AWS account ID.
public Principal ( string accountId ) : System
accountId string An AWS account ID.
Результат System

Principal() публичный Метод

Constructs a new principal with the specified provider and id
public Principal ( string provider, string id ) : System
provider string The provider of the principal
id string The unique ID of the Principal within the provider
Результат System

Principal() публичный Метод

Constructs a new principal with the specified provider and id and optionally strips hyphens from the id
public Principal ( string provider, string id, bool stripHyphen ) : System
provider string The provider of the principal
id string The unique ID of the Principal within the provider
stripHyphen bool Strip hyphen
Результат System

Описание свойств

AllUsers публичное статическое свойство

Principal instance that includes all authenticated AWS users.

This is useful when you don't want to restrict access based on the identity of the requester, but instead on other identifying characteristics such as the requester's IP address.

public static Principal,Amazon.Auth.AccessControlPolicy AllUsers
Результат Principal

Anonymous публичное статическое свойство

The anonymous Principal.
public static Principal,Amazon.Auth.AccessControlPolicy Anonymous
Результат Principal