#[non_exhaustive]pub struct TestAuthorizationInputBuilder { /* private fields */ }
Expand description
A builder for TestAuthorizationInput
.
Implementations§
source§impl TestAuthorizationInputBuilder
impl TestAuthorizationInputBuilder
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn cognito_identity_pool_id(self, input: impl Into<String>) -> Self
pub fn cognito_identity_pool_id(self, input: impl Into<String>) -> Self
The Cognito identity pool ID.
sourcepub fn set_cognito_identity_pool_id(self, input: Option<String>) -> Self
pub fn set_cognito_identity_pool_id(self, input: Option<String>) -> Self
The Cognito identity pool ID.
sourcepub fn get_cognito_identity_pool_id(&self) -> &Option<String>
pub fn get_cognito_identity_pool_id(&self) -> &Option<String>
The Cognito identity pool ID.
sourcepub fn auth_infos(self, input: AuthInfo) -> Self
pub fn auth_infos(self, input: AuthInfo) -> Self
Appends an item to auth_infos
.
To override the contents of this collection use set_auth_infos
.
A list of authorization info objects. Simulating authorization will create a response for each authInfo
object in the list.
sourcepub fn set_auth_infos(self, input: Option<Vec<AuthInfo>>) -> Self
pub fn set_auth_infos(self, input: Option<Vec<AuthInfo>>) -> Self
A list of authorization info objects. Simulating authorization will create a response for each authInfo
object in the list.
sourcepub fn get_auth_infos(&self) -> &Option<Vec<AuthInfo>>
pub fn get_auth_infos(&self) -> &Option<Vec<AuthInfo>>
A list of authorization info objects. Simulating authorization will create a response for each authInfo
object in the list.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
The MQTT client ID.
sourcepub fn get_client_id(&self) -> &Option<String>
pub fn get_client_id(&self) -> &Option<String>
The MQTT client ID.
sourcepub fn policy_names_to_add(self, input: impl Into<String>) -> Self
pub fn policy_names_to_add(self, input: impl Into<String>) -> Self
Appends an item to policy_names_to_add
.
To override the contents of this collection use set_policy_names_to_add
.
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
sourcepub fn set_policy_names_to_add(self, input: Option<Vec<String>>) -> Self
pub fn set_policy_names_to_add(self, input: Option<Vec<String>>) -> Self
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
sourcepub fn get_policy_names_to_add(&self) -> &Option<Vec<String>>
pub fn get_policy_names_to_add(&self) -> &Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
sourcepub fn policy_names_to_skip(self, input: impl Into<String>) -> Self
pub fn policy_names_to_skip(self, input: impl Into<String>) -> Self
Appends an item to policy_names_to_skip
.
To override the contents of this collection use set_policy_names_to_skip
.
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
sourcepub fn set_policy_names_to_skip(self, input: Option<Vec<String>>) -> Self
pub fn set_policy_names_to_skip(self, input: Option<Vec<String>>) -> Self
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
sourcepub fn get_policy_names_to_skip(&self) -> &Option<Vec<String>>
pub fn get_policy_names_to_skip(&self) -> &Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
sourcepub fn build(self) -> Result<TestAuthorizationInput, BuildError>
pub fn build(self) -> Result<TestAuthorizationInput, BuildError>
Consumes the builder and constructs a TestAuthorizationInput
.
source§impl TestAuthorizationInputBuilder
impl TestAuthorizationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestAuthorizationOutput, SdkError<TestAuthorizationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestAuthorizationOutput, SdkError<TestAuthorizationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestAuthorizationInputBuilder
impl Clone for TestAuthorizationInputBuilder
source§fn clone(&self) -> TestAuthorizationInputBuilder
fn clone(&self) -> TestAuthorizationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TestAuthorizationInputBuilder
impl Default for TestAuthorizationInputBuilder
source§fn default() -> TestAuthorizationInputBuilder
fn default() -> TestAuthorizationInputBuilder
source§impl PartialEq for TestAuthorizationInputBuilder
impl PartialEq for TestAuthorizationInputBuilder
source§fn eq(&self, other: &TestAuthorizationInputBuilder) -> bool
fn eq(&self, other: &TestAuthorizationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.