|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elastictranscoder.model.TestRoleRequest
public class TestRoleRequest
Container for the parameters to the TestRole operation
.
To test the IAM role that's used by Elastic Transcoder to create the pipeline, send a POST request to the /2012-09-25/roleTests
resource.
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.
AmazonElasticTranscoder.testRole(TestRoleRequest)
,
Serialized FormConstructor Summary | |
---|---|
TestRoleRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestRoleRequest()
Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |