@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddPermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AddPermissionRequest() |
Modifier and Type | Method and Description |
---|---|
AddPermissionRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The AWS Lambda action you want to allow in this statement.
|
String |
getEventSourceToken()
A unique token that must be supplied by the principal invoking the function.
|
String |
getFunctionName()
The name of the lambda function.
|
String |
getPrincipal()
The principal who is getting this permission.
|
String |
getQualifier()
Specify a version or alias to add permissions to a published version of the function.
|
String |
getRevisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
String |
getSourceAccount()
This parameter is used for S3 and SES.
|
String |
getSourceArn()
The Amazon Resource Name of the invoker.
|
String |
getStatementId()
A unique statement identifier.
|
int |
hashCode() |
void |
setAction(String action)
The AWS Lambda action you want to allow in this statement.
|
void |
setEventSourceToken(String eventSourceToken)
A unique token that must be supplied by the principal invoking the function.
|
void |
setFunctionName(String functionName)
The name of the lambda function.
|
void |
setPrincipal(String principal)
The principal who is getting this permission.
|
void |
setQualifier(String qualifier)
Specify a version or alias to add permissions to a published version of the function.
|
void |
setRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
void |
setSourceAccount(String sourceAccount)
This parameter is used for S3 and SES.
|
void |
setSourceArn(String sourceArn)
The Amazon Resource Name of the invoker.
|
void |
setStatementId(String statementId)
A unique statement identifier.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AddPermissionRequest |
withAction(String action)
The AWS Lambda action you want to allow in this statement.
|
AddPermissionRequest |
withEventSourceToken(String eventSourceToken)
A unique token that must be supplied by the principal invoking the function.
|
AddPermissionRequest |
withFunctionName(String functionName)
The name of the lambda function.
|
AddPermissionRequest |
withPrincipal(String principal)
The principal who is getting this permission.
|
AddPermissionRequest |
withQualifier(String qualifier)
Specify a version or alias to add permissions to a published version of the function.
|
AddPermissionRequest |
withRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
AddPermissionRequest |
withSourceAccount(String sourceAccount)
This parameter is used for S3 and SES.
|
AddPermissionRequest |
withSourceArn(String sourceArn)
The Amazon Resource Name of the invoker.
|
AddPermissionRequest |
withStatementId(String statementId)
A unique statement identifier.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public AddPermissionRequest withFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setStatementId(String statementId)
A unique statement identifier.
statementId
- A unique statement identifier.public String getStatementId()
A unique statement identifier.
public AddPermissionRequest withStatementId(String statementId)
A unique statement identifier.
statementId
- A unique statement identifier.public void setAction(String action)
The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can use
wildcard (lambda:*
) to grant permission for all AWS Lambda actions.
action
- The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can
use wildcard (lambda:*
) to grant permission for all AWS Lambda actions.public String getAction()
The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can use
wildcard (lambda:*
) to grant permission for all AWS Lambda actions.
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can
use wildcard (lambda:*
) to grant permission for all AWS Lambda actions.public AddPermissionRequest withAction(String action)
The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can use
wildcard (lambda:*
) to grant permission for all AWS Lambda actions.
action
- The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with
lambda:
followed by the API name . For example, lambda:CreateFunction
. You can
use wildcard (lambda:*
) to grant permission for all AWS Lambda actions.public void setPrincipal(String principal)
The principal who is getting this permission. The principal can be an AWS service (e.g.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID for
cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit
who can invoke the function through that service.
principal
- The principal who is getting this permission. The principal can be an AWS service (e.g.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID
for cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit who can invoke the function through that service.public String getPrincipal()
The principal who is getting this permission. The principal can be an AWS service (e.g.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID for
cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit
who can invoke the function through that service.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID
for cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit who can invoke the function through that service.public AddPermissionRequest withPrincipal(String principal)
The principal who is getting this permission. The principal can be an AWS service (e.g.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID for
cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit
who can invoke the function through that service.
principal
- The principal who is getting this permission. The principal can be an AWS service (e.g.
s3.amazonaws.com
or sns.amazonaws.com
) for service triggers, or an account ID
for cross-account access. If you specify a service as a principal, use the SourceArn
parameter to limit who can invoke the function through that service.public void setSourceArn(String sourceArn)
The Amazon Resource Name of the invoker.
If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
sourceArn
- The Amazon Resource Name of the invoker. If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
public String getSourceArn()
The Amazon Resource Name of the invoker.
If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
public AddPermissionRequest withSourceArn(String sourceArn)
The Amazon Resource Name of the invoker.
If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
sourceArn
- The Amazon Resource Name of the invoker. If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.
public void setSourceAccount(String sourceAccount)
This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. For example, if
the SourceArn
identifies a bucket, then this is the bucket owner's account ID. You can use this
additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket
owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to
specify all sources (that is, you don't specify the SourceArn
) owned by a specific account.
sourceAccount
- This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. For
example, if the SourceArn
identifies a bucket, then this is the bucket owner's account ID.
You can use this additional condition to ensure the bucket you specify is owned by a specific account (it
is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can
also use this condition to specify all sources (that is, you don't specify the SourceArn
)
owned by a specific account.public String getSourceAccount()
This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. For example, if
the SourceArn
identifies a bucket, then this is the bucket owner's account ID. You can use this
additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket
owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to
specify all sources (that is, you don't specify the SourceArn
) owned by a specific account.
SourceArn
identifies a bucket, then this is the bucket owner's account ID.
You can use this additional condition to ensure the bucket you specify is owned by a specific account (it
is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can
also use this condition to specify all sources (that is, you don't specify the SourceArn
)
owned by a specific account.public AddPermissionRequest withSourceAccount(String sourceAccount)
This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. For example, if
the SourceArn
identifies a bucket, then this is the bucket owner's account ID. You can use this
additional condition to ensure the bucket you specify is owned by a specific account (it is possible the bucket
owner deleted the bucket and some other AWS account created the bucket). You can also use this condition to
specify all sources (that is, you don't specify the SourceArn
) owned by a specific account.
sourceAccount
- This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. For
example, if the SourceArn
identifies a bucket, then this is the bucket owner's account ID.
You can use this additional condition to ensure the bucket you specify is owned by a specific account (it
is possible the bucket owner deleted the bucket and some other AWS account created the bucket). You can
also use this condition to specify all sources (that is, you don't specify the SourceArn
)
owned by a specific account.public void setEventSourceToken(String eventSourceToken)
A unique token that must be supplied by the principal invoking the function. This is currently only used for Alexa Smart Home functions.
eventSourceToken
- A unique token that must be supplied by the principal invoking the function. This is currently only used
for Alexa Smart Home functions.public String getEventSourceToken()
A unique token that must be supplied by the principal invoking the function. This is currently only used for Alexa Smart Home functions.
public AddPermissionRequest withEventSourceToken(String eventSourceToken)
A unique token that must be supplied by the principal invoking the function. This is currently only used for Alexa Smart Home functions.
eventSourceToken
- A unique token that must be supplied by the principal invoking the function. This is currently only used
for Alexa Smart Home functions.public void setQualifier(String qualifier)
Specify a version or alias to add permissions to a published version of the function.
qualifier
- Specify a version or alias to add permissions to a published version of the function.public String getQualifier()
Specify a version or alias to add permissions to a published version of the function.
public AddPermissionRequest withQualifier(String qualifier)
Specify a version or alias to add permissions to a published version of the function.
qualifier
- Specify a version or alias to add permissions to a published version of the function.public void setRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias
revisionId
- An optional value you can use to ensure you are updating the latest update of the function version or
alias. If the RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAliaspublic String getRevisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias
RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAliaspublic AddPermissionRequest withRevisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias
revisionId
- An optional value you can use to ensure you are updating the latest update of the function version or
alias. If the RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAliaspublic String toString()
toString
in class Object
Object.toString()
public AddPermissionRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.