Class CfnPermissionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissionMixinProps>
- Enclosing interface:
CfnPermissionMixinProps
CfnPermissionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPermissionMixinProps.getAction()build()Builds the configured instance.eventSourceToken(String eventSourceToken) Sets the value ofCfnPermissionMixinProps.getEventSourceToken()functionName(String functionName) Sets the value ofCfnPermissionMixinProps.getFunctionName()functionName(IFunctionRef functionName) Sets the value ofCfnPermissionMixinProps.getFunctionName()functionName(IVersionRef functionName) Sets the value ofCfnPermissionMixinProps.getFunctionName()functionUrlAuthType(String functionUrlAuthType) Sets the value ofCfnPermissionMixinProps.getFunctionUrlAuthType()invokedViaFunctionUrl(Boolean invokedViaFunctionUrl) Sets the value ofCfnPermissionMixinProps.getInvokedViaFunctionUrl()invokedViaFunctionUrl(IResolvable invokedViaFunctionUrl) Sets the value ofCfnPermissionMixinProps.getInvokedViaFunctionUrl()Sets the value ofCfnPermissionMixinProps.getPrincipal()Sets the value ofCfnPermissionMixinProps.getPrincipal()Sets the value ofCfnPermissionMixinProps.getPrincipal()principalOrgId(String principalOrgId) Sets the value ofCfnPermissionMixinProps.getPrincipalOrgId()sourceAccount(String sourceAccount) Sets the value ofCfnPermissionMixinProps.getSourceAccount()Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(IUserPoolRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()Sets the value ofCfnPermissionMixinProps.getSourceArn()Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(ITopicRuleRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(IDeliveryStreamRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(IFunctionRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(ILogGroupRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()sourceArn(IBucketRef sourceArn) Sets the value ofCfnPermissionMixinProps.getSourceArn()Sets the value ofCfnPermissionMixinProps.getSourceArn()Sets the value ofCfnPermissionMixinProps.getSourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnPermissionMixinProps.getAction()- Parameters:
action- The action that the principal can use on the function. For example,lambda:InvokeFunctionorlambda:GetFunction.- Returns:
this
-
eventSourceToken
Sets the value ofCfnPermissionMixinProps.getEventSourceToken()- Parameters:
eventSourceToken- For Alexa Smart Home functions, a token that the invoker must supply.- Returns:
this
-
functionName
Sets the value ofCfnPermissionMixinProps.getFunctionName()- Parameters:
functionName- The name or ARN of the Lambda function, version, or alias. Name formats - Function name –my-function(name-only),my-function:v1(with alias).- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. - Partial ARN –
123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Function ARN –
- Returns:
this
-
functionName
Sets the value ofCfnPermissionMixinProps.getFunctionName()- Parameters:
functionName- The name or ARN of the Lambda function, version, or alias. Name formats - Function name –my-function(name-only),my-function:v1(with alias).- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. - Partial ARN –
123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Function ARN –
- Returns:
this
-
functionName
Sets the value ofCfnPermissionMixinProps.getFunctionName()- Parameters:
functionName- The name or ARN of the Lambda function, version, or alias. Name formats - Function name –my-function(name-only),my-function:v1(with alias).- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. - Partial ARN –
123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Function ARN –
- Returns:
this
-
functionUrlAuthType
@Stability(Stable) public CfnPermissionMixinProps.Builder functionUrlAuthType(String functionUrlAuthType) Sets the value ofCfnPermissionMixinProps.getFunctionUrlAuthType()- Parameters:
functionUrlAuthType- The type of authentication that your function URL uses. Set toAWS_IAMif you want to restrict access to authenticated users only. Set toNONEif you want to bypass IAM authentication to create a public endpoint. For more information, see Control access to Lambda function URLs .- Returns:
this
-
invokedViaFunctionUrl
@Stability(Stable) public CfnPermissionMixinProps.Builder invokedViaFunctionUrl(Boolean invokedViaFunctionUrl) Sets the value ofCfnPermissionMixinProps.getInvokedViaFunctionUrl()- Parameters:
invokedViaFunctionUrl- Indicates whether the permission applies when the function is invoked through a function URL.- Returns:
this
-
invokedViaFunctionUrl
@Stability(Stable) public CfnPermissionMixinProps.Builder invokedViaFunctionUrl(IResolvable invokedViaFunctionUrl) Sets the value ofCfnPermissionMixinProps.getInvokedViaFunctionUrl()- Parameters:
invokedViaFunctionUrl- Indicates whether the permission applies when the function is invoked through a function URL.- Returns:
this
-
principal
Sets the value ofCfnPermissionMixinProps.getPrincipal()- Parameters:
principal- The AWS service , AWS account , IAM user, or IAM role that invokes the function. If you specify a service, useSourceArnorSourceAccountto limit who can invoke the function through that service.- Returns:
this
-
principal
Sets the value ofCfnPermissionMixinProps.getPrincipal()- Parameters:
principal- The AWS service , AWS account , IAM user, or IAM role that invokes the function. If you specify a service, useSourceArnorSourceAccountto limit who can invoke the function through that service.- Returns:
this
-
principal
Sets the value ofCfnPermissionMixinProps.getPrincipal()- Parameters:
principal- The AWS service , AWS account , IAM user, or IAM role that invokes the function. If you specify a service, useSourceArnorSourceAccountto limit who can invoke the function through that service.- Returns:
this
-
principalOrgId
Sets the value ofCfnPermissionMixinProps.getPrincipalOrgId()- Parameters:
principalOrgId- The identifier for your organization in AWS Organizations . Use this to grant permissions to all the AWS accounts under this organization.- Returns:
this
-
sourceAccount
Sets the value ofCfnPermissionMixinProps.getSourceAccount()- Parameters:
sourceAccount- For AWS service , the ID of the AWS account that owns the resource. Use this together withSourceArnto ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
sourceArn
Sets the value ofCfnPermissionMixinProps.getSourceArn()- Parameters:
sourceArn- For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.Note that Lambda configures the comparison using the
StringLikeoperator.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPermissionMixinProps>- Returns:
- a new instance of
CfnPermissionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-