public class TestRoleRequest extends AmazonWebServiceRequest implements Serializable
TestRole operation
.
The TestRole operation tests the IAM role used to create the pipeline.
The TestRole
action lets you determine whether the IAM role you are using has sufficient permissions to let Elastic Transcoder perform
tasks associated with the transcoding process. The action attempts to assume the specified IAM role, checks read access to the input and output
buckets, and tries to send a test notification to Amazon SNS topics that you specify.
Constructor and Description |
---|
TestRoleRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInputBucket()
The Amazon S3 bucket that contains media files to be transcoded.
|
String |
getOutputBucket()
The Amazon S3 bucket that Elastic Transcoder will write transcoded
media files to.
|
String |
getRole()
The IAM Amazon Resource Name (ARN) for the role that you want Elastic
Transcoder to test.
|
List<String> |
getTopics()
The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.
|
int |
hashCode() |
void |
setInputBucket(String inputBucket)
The Amazon S3 bucket that contains media files to be transcoded.
|
void |
setOutputBucket(String outputBucket)
The Amazon S3 bucket that Elastic Transcoder will write transcoded
media files to.
|
void |
setRole(String role)
The IAM Amazon Resource Name (ARN) for the role that you want Elastic
Transcoder to test.
|
void |
setTopics(Collection<String> topics)
The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestRoleRequest |
withInputBucket(String inputBucket)
The Amazon S3 bucket that contains media files to be transcoded.
|
TestRoleRequest |
withOutputBucket(String outputBucket)
The Amazon S3 bucket that Elastic Transcoder will write transcoded
media files to.
|
TestRoleRequest |
withRole(String role)
The IAM Amazon Resource Name (ARN) for the role that you want Elastic
Transcoder to test.
|
TestRoleRequest |
withTopics(Collection<String> topics)
The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.
|
TestRoleRequest |
withTopics(String... topics)
The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getRole()
Constraints:
Pattern: ^arn:aws:iam::\w{12}:role/.+$
public void setRole(String role)
Constraints:
Pattern: ^arn:aws:iam::\w{12}:role/.+$
role
- The IAM Amazon Resource Name (ARN) for the role that you want Elastic
Transcoder to test.public TestRoleRequest withRole(String role)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^arn:aws:iam::\w{12}:role/.+$
role
- The IAM Amazon Resource Name (ARN) for the role that you want Elastic
Transcoder to test.public String getInputBucket()
Constraints:
Pattern: ^(\w|\.|-){1,255}$
public void setInputBucket(String inputBucket)
Constraints:
Pattern: ^(\w|\.|-){1,255}$
inputBucket
- The Amazon S3 bucket that contains media files to be transcoded. The
action attempts to read from this bucket.public TestRoleRequest withInputBucket(String inputBucket)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^(\w|\.|-){1,255}$
inputBucket
- The Amazon S3 bucket that contains media files to be transcoded. The
action attempts to read from this bucket.public String getOutputBucket()
Constraints:
Pattern: ^(\w|\.|-){1,255}$
public void setOutputBucket(String outputBucket)
Constraints:
Pattern: ^(\w|\.|-){1,255}$
outputBucket
- The Amazon S3 bucket that Elastic Transcoder will write transcoded
media files to. The action attempts to read from this bucket.public TestRoleRequest withOutputBucket(String outputBucket)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^(\w|\.|-){1,255}$
outputBucket
- The Amazon S3 bucket that Elastic Transcoder will write transcoded
media files to. The action attempts to read from this bucket.public List<String> getTopics()
Constraints:
Length: 0 - 30
public void setTopics(Collection<String> topics)
Constraints:
Length: 0 - 30
topics
- The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.public TestRoleRequest withTopics(String... topics)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 30
topics
- The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.public TestRoleRequest withTopics(Collection<String> topics)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 30
topics
- The ARNs of one or more Amazon Simple Notification Service (Amazon
SNS) topics that you want the action to send a test notification to.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.