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.

파일 보기 프로젝트 열기: aws/aws-sdk-net

공개 프로퍼티들

프로퍼티 타입 설명
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