Struct aws_sdk_iot::input::TestAuthorizationInput [−][src]
#[non_exhaustive]pub struct TestAuthorizationInput {
pub principal: Option<String>,
pub cognito_identity_pool_id: Option<String>,
pub auth_infos: Option<Vec<AuthInfo>>,
pub client_id: Option<String>,
pub policy_names_to_add: Option<Vec<String>>,
pub policy_names_to_skip: Option<Vec<String>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.principal: 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).
cognito_identity_pool_id: Option<String>
The Cognito identity pool ID.
auth_infos: Option<Vec<AuthInfo>>
A list of authorization info objects. Simulating authorization will create a response
for each authInfo
object in the list.
client_id: Option<String>
The MQTT client ID.
policy_names_to_add: Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policy_names_to_skip: Option<Vec<String>>
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestAuthorization, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestAuthorization, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TestAuthorization
>
Creates a new builder-style object to manufacture TestAuthorizationInput
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).
The Cognito identity pool ID.
A list of authorization info objects. Simulating authorization will create a response
for each authInfo
object in the list.
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TestAuthorizationInput
impl Send for TestAuthorizationInput
impl Sync for TestAuthorizationInput
impl Unpin for TestAuthorizationInput
impl UnwindSafe for TestAuthorizationInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more