@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule
group or firewall policy with and the operations that you want the accounts to be able to perform.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
|
int |
hashCode() |
void |
setPolicy(String policy)
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule
group or firewall policy with and the operations that you want the accounts to be able to perform.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule
group or firewall policy with and the operations that you want the accounts to be able to perform.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
|
addHandlerContext, 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 setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
resourceArn
- The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies
with.public String getResourceArn()
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
public PutResourcePolicyRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
resourceArn
- The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies
with.public void setPolicy(String policy)
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you
want to share with the account that you specified in Arn
.
policy
- The AWS Identity and Access Management policy statement that lists the accounts that you want to share
your rule group or firewall policy with and the operations that you want the accounts to be able to
perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies
that you want to share with the account that you specified in Arn
.
public String getPolicy()
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you
want to share with the account that you specified in Arn
.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies
that you want to share with the account that you specified in Arn
.
public PutResourcePolicyRequest withPolicy(String policy)
The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you
want to share with the account that you specified in Arn
.
policy
- The AWS Identity and Access Management policy statement that lists the accounts that you want to share
your rule group or firewall policy with and the operations that you want the accounts to be able to
perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewallPolicy
network-firewall:UpdateFirewallPolicy
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
network-firewall:CreateFirewall
network-firewall:UpdateFirewall
network-firewall:AssociateFirewallPolicy
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies
that you want to share with the account that you specified in Arn
.
public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()