#[non_exhaustive]pub struct CreateIamPolicyAssignmentInput { /* private fields */ }Implementations§
source§impl CreateIamPolicyAssignmentInput
impl CreateIamPolicyAssignmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateIAMPolicyAssignment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateIAMPolicyAssignment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateIAMPolicyAssignment>
Examples found in repository?
3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateIAMPolicyAssignment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateIAMPolicyAssignmentError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateIamPolicyAssignmentOutput,
aws_smithy_http::result::SdkError<crate::error::CreateIAMPolicyAssignmentError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateIamPolicyAssignmentInput.
source§impl CreateIamPolicyAssignmentInput
impl CreateIamPolicyAssignmentInput
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The ID of the Amazon Web Services account where you want to assign an IAM policy to Amazon QuickSight users or groups.
sourcepub fn assignment_name(&self) -> Option<&str>
pub fn assignment_name(&self) -> Option<&str>
The name of the assignment, also called a rule. It must be unique within an Amazon Web Services account.
sourcepub fn assignment_status(&self) -> Option<&AssignmentStatus>
pub fn assignment_status(&self) -> Option<&AssignmentStatus>
The status of the assignment. Possible values are as follows:
-
ENABLED- Anything specified in this assignment is used when creating the data source. -
DISABLED- This assignment isn't used when creating the data source. -
DRAFT- This assignment is an unfinished draft and isn't used when creating the data source.
sourcepub fn policy_arn(&self) -> Option<&str>
pub fn policy_arn(&self) -> Option<&str>
The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment.
Trait Implementations§
source§impl Clone for CreateIamPolicyAssignmentInput
impl Clone for CreateIamPolicyAssignmentInput
source§fn clone(&self) -> CreateIamPolicyAssignmentInput
fn clone(&self) -> CreateIamPolicyAssignmentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more