Struct aws_sdk_verifiedpermissions::operation::update_policy::builders::UpdatePolicyInputBuilder
source · #[non_exhaustive]pub struct UpdatePolicyInputBuilder { /* private fields */ }Expand description
A builder for UpdatePolicyInput.
Implementations§
source§impl UpdatePolicyInputBuilder
impl UpdatePolicyInputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store that contains the policy that you want to update.
This field is required.sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store that contains the policy that you want to update.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store that contains the policy that you want to update.
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
This field is required.sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
sourcepub fn definition(self, input: UpdatePolicyDefinition) -> Self
pub fn definition(self, input: UpdatePolicyDefinition) -> Self
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn set_definition(self, input: Option<UpdatePolicyDefinition>) -> Self
pub fn set_definition(self, input: Option<UpdatePolicyDefinition>) -> Self
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn get_definition(&self) -> &Option<UpdatePolicyDefinition>
pub fn get_definition(&self) -> &Option<UpdatePolicyDefinition>
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn build(self) -> Result<UpdatePolicyInput, BuildError>
pub fn build(self) -> Result<UpdatePolicyInput, BuildError>
Consumes the builder and constructs a UpdatePolicyInput.
source§impl UpdatePolicyInputBuilder
impl UpdatePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdatePolicyOutput, SdkError<UpdatePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdatePolicyOutput, SdkError<UpdatePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdatePolicyInputBuilder
impl Clone for UpdatePolicyInputBuilder
source§fn clone(&self) -> UpdatePolicyInputBuilder
fn clone(&self) -> UpdatePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdatePolicyInputBuilder
impl Debug for UpdatePolicyInputBuilder
source§impl Default for UpdatePolicyInputBuilder
impl Default for UpdatePolicyInputBuilder
source§fn default() -> UpdatePolicyInputBuilder
fn default() -> UpdatePolicyInputBuilder
source§impl PartialEq for UpdatePolicyInputBuilder
impl PartialEq for UpdatePolicyInputBuilder
source§fn eq(&self, other: &UpdatePolicyInputBuilder) -> bool
fn eq(&self, other: &UpdatePolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.