pub struct PermissionBuilder { /* private fields */ }Expand description
Builder for Lambda function permissions.
Creates permission resources that allow other AWS services to invoke a Lambda function.
Implementations§
Source§impl PermissionBuilder
impl PermissionBuilder
Sourcepub fn new<R: Into<String>>(
id: &str,
action: LambdaPermissionAction,
function_name: Value,
principal: R,
) -> Self
pub fn new<R: Into<String>>( id: &str, action: LambdaPermissionAction, function_name: Value, principal: R, ) -> Self
Creates a new permission builder for a Lambda function.
§Arguments
id- Unique identifier for the permission resourceaction- Lambda action to allow (e.g., “lambda:InvokeFunction”)function_name- Reference to the Lambda functionprincipal- AWS service or account that will be granted permission
pub fn source_arn(self, arn: Value) -> Self
pub fn current_account(self) -> Self
pub fn build(self, stack_builder: &mut StackBuilder) -> PermissionRef
Auto Trait Implementations§
impl Freeze for PermissionBuilder
impl RefUnwindSafe for PermissionBuilder
impl Send for PermissionBuilder
impl Sync for PermissionBuilder
impl Unpin for PermissionBuilder
impl UnsafeUnpin for PermissionBuilder
impl UnwindSafe for PermissionBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more