pub struct Builder { /* private fields */ }
Expand description
A builder for PutPermissionInput
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn profiling_group_name(self, input: impl Into<String>) -> Self
pub fn profiling_group_name(self, input: impl Into<String>) -> Self
The name of the profiling group to grant access to.
sourcepub fn set_profiling_group_name(self, input: Option<String>) -> Self
pub fn set_profiling_group_name(self, input: Option<String>) -> Self
The name of the profiling group to grant access to.
sourcepub fn action_group(self, input: ActionGroup) -> Self
pub fn action_group(self, input: ActionGroup) -> Self
Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions
, which grants permission to perform actions required by the profiling agent, ConfigureAgent
and PostAgentProfile
permissions.
sourcepub fn set_action_group(self, input: Option<ActionGroup>) -> Self
pub fn set_action_group(self, input: Option<ActionGroup>) -> Self
Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions
, which grants permission to perform actions required by the profiling agent, ConfigureAgent
and PostAgentProfile
permissions.
sourcepub fn principals(self, input: impl Into<String>) -> Self
pub fn principals(self, input: impl Into<String>) -> Self
Appends an item to principals
.
To override the contents of this collection use set_principals
.
A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
sourcepub fn set_principals(self, input: Option<Vec<String>>) -> Self
pub fn set_principals(self, input: Option<Vec<String>>) -> Self
A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId
.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId
.
sourcepub fn build(self) -> Result<PutPermissionInput, BuildError>
pub fn build(self) -> Result<PutPermissionInput, BuildError>
Consumes the builder and constructs a PutPermissionInput
.