@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DynamodbStreamConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The proposed access control configuration for a DynamoDB stream. You can propose a configuration for a new DynamoDB stream or an existing DynamoDB stream that you own by specifying the policy for the DynamoDB stream. For more information, see PutResourcePolicy .
If the configuration is for an existing DynamoDB stream and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the stream.
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB stream without a policy.
To propose deletion of an existing DynamoDB stream policy, you can specify an empty string for the DynamoDB policy.
Constructor and Description |
---|
DynamodbStreamConfiguration() |
Modifier and Type | Method and Description |
---|---|
DynamodbStreamConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getStreamPolicy()
The proposed resource policy defining who can access or manage the DynamoDB stream.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStreamPolicy(String streamPolicy)
The proposed resource policy defining who can access or manage the DynamoDB stream.
|
String |
toString()
Returns a string representation of this object.
|
DynamodbStreamConfiguration |
withStreamPolicy(String streamPolicy)
The proposed resource policy defining who can access or manage the DynamoDB stream.
|
public void setStreamPolicy(String streamPolicy)
The proposed resource policy defining who can access or manage the DynamoDB stream.
streamPolicy
- The proposed resource policy defining who can access or manage the DynamoDB stream.public String getStreamPolicy()
The proposed resource policy defining who can access or manage the DynamoDB stream.
public DynamodbStreamConfiguration withStreamPolicy(String streamPolicy)
The proposed resource policy defining who can access or manage the DynamoDB stream.
streamPolicy
- The proposed resource policy defining who can access or manage the DynamoDB stream.public String toString()
toString
in class Object
Object.toString()
public DynamodbStreamConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.