/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include [Event-based policies only] Specifies an event that activates an
* event-based policy.See Also:
AWS
* API Reference
The type of event. Currently, only snapshot sharing events are supported.
*/ inline const EventTypeValues& GetEventType() const{ return m_eventType; } /** *The type of event. Currently, only snapshot sharing events are supported.
*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *The type of event. Currently, only snapshot sharing events are supported.
*/ inline void SetEventType(const EventTypeValues& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *The type of event. Currently, only snapshot sharing events are supported.
*/ inline void SetEventType(EventTypeValues&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *The type of event. Currently, only snapshot sharing events are supported.
*/ inline EventParameters& WithEventType(const EventTypeValues& value) { SetEventType(value); return *this;} /** *The type of event. Currently, only snapshot sharing events are supported.
*/ inline EventParameters& WithEventType(EventTypeValues&& value) { SetEventType(std::move(value)); return *this;} /** *The IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline const Aws::VectorThe IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline bool SnapshotOwnerHasBeenSet() const { return m_snapshotOwnerHasBeenSet; } /** *The IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline void SetSnapshotOwner(const Aws::VectorThe IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline void SetSnapshotOwner(Aws::VectorThe IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline EventParameters& WithSnapshotOwner(const Aws::VectorThe IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline EventParameters& WithSnapshotOwner(Aws::VectorThe IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline EventParameters& AddSnapshotOwner(const Aws::String& value) { m_snapshotOwnerHasBeenSet = true; m_snapshotOwner.push_back(value); return *this; } /** *The IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline EventParameters& AddSnapshotOwner(Aws::String&& value) { m_snapshotOwnerHasBeenSet = true; m_snapshotOwner.push_back(std::move(value)); return *this; } /** *The IDs of the Amazon Web Services accounts that can trigger policy by * sharing snapshots with your account. The policy only runs if one of the * specified Amazon Web Services accounts shares a snapshot with your account.
*/ inline EventParameters& AddSnapshotOwner(const char* value) { m_snapshotOwnerHasBeenSet = true; m_snapshotOwner.push_back(value); return *this; } /** *The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.
The snapshot description that can trigger the policy. The description pattern * is specified using a regular expression. The policy runs only if a snapshot with * a description that matches the specified pattern is shared with your * account.
For example, specifying ^.*Created for policy:
* policy-1234567890abcdef0.*$
configures the policy to run only if
* snapshots created by policy policy-1234567890abcdef0
are shared
* with your account.