Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.policysimulator/v1alpha.Replay
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates and starts a Replay using the given ReplayConfig. Auto-naming is currently not supported for this resource. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create Replay Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Replay(name: string, args: ReplayArgs, opts?: CustomResourceOptions);
@overload
def Replay(resource_name: str,
args: ReplayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Replay(resource_name: str,
opts: Optional[ResourceOptions] = None,
config: Optional[GoogleCloudPolicysimulatorV1alphaReplayConfigArgs] = None,
location: Optional[str] = None,
project: Optional[str] = None)
func NewReplay(ctx *Context, name string, args ReplayArgs, opts ...ResourceOption) (*Replay, error)
public Replay(string name, ReplayArgs args, CustomResourceOptions? opts = null)
public Replay(String name, ReplayArgs args)
public Replay(String name, ReplayArgs args, CustomResourceOptions options)
type: google-native:policysimulator/v1alpha:Replay
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReplayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeReplayResource = new GoogleNative.PolicySimulator.V1Alpha.Replay("google-nativeReplayResource", new()
{
Config = new GoogleNative.PolicySimulator.V1Alpha.Inputs.GoogleCloudPolicysimulatorV1alphaReplayConfigArgs
{
LogSource = GoogleNative.PolicySimulator.V1Alpha.GoogleCloudPolicysimulatorV1alphaReplayConfigLogSource.LogSourceUnspecified,
PolicyOverlay =
{
{ "string", "string" },
},
},
Location = "string",
Project = "string",
});
example, err := policysimulatorv1alpha.NewReplay(ctx, "google-nativeReplayResource", &policysimulatorv1alpha.ReplayArgs{
Config: &policysimulator.GoogleCloudPolicysimulatorV1alphaReplayConfigArgs{
LogSource: policysimulatorv1alpha.GoogleCloudPolicysimulatorV1alphaReplayConfigLogSourceLogSourceUnspecified,
PolicyOverlay: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Project: pulumi.String("string"),
})
var google_nativeReplayResource = new Replay("google-nativeReplayResource", ReplayArgs.builder()
.config(GoogleCloudPolicysimulatorV1alphaReplayConfigArgs.builder()
.logSource("LOG_SOURCE_UNSPECIFIED")
.policyOverlay(Map.of("string", "string"))
.build())
.location("string")
.project("string")
.build());
google_native_replay_resource = google_native.policysimulator.v1alpha.Replay("google-nativeReplayResource",
config=google_native.policysimulator.v1alpha.GoogleCloudPolicysimulatorV1alphaReplayConfigArgs(
log_source=google_native.policysimulator.v1alpha.GoogleCloudPolicysimulatorV1alphaReplayConfigLogSource.LOG_SOURCE_UNSPECIFIED,
policy_overlay={
"string": "string",
},
),
location="string",
project="string")
const google_nativeReplayResource = new google_native.policysimulator.v1alpha.Replay("google-nativeReplayResource", {
config: {
logSource: google_native.policysimulator.v1alpha.GoogleCloudPolicysimulatorV1alphaReplayConfigLogSource.LogSourceUnspecified,
policyOverlay: {
string: "string",
},
},
location: "string",
project: "string",
});
type: google-native:policysimulator/v1alpha:Replay
properties:
config:
logSource: LOG_SOURCE_UNSPECIFIED
policyOverlay:
string: string
location: string
project: string
Replay Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Replay resource accepts the following input properties:
- Config
Pulumi.
Google Native. Policy Simulator. V1Alpha. Inputs. Google Cloud Policysimulator V1alpha Replay Config - The configuration used for the
Replay
. - Location string
- Project string
- Config
Google
Cloud Policysimulator V1alpha Replay Config Args - The configuration used for the
Replay
. - Location string
- Project string
- config
Google
Cloud Policysimulator V1alpha Replay Config - The configuration used for the
Replay
. - location String
- project String
- config
Google
Cloud Policysimulator V1alpha Replay Config - The configuration used for the
Replay
. - location string
- project string
- config
Google
Cloud Policysimulator V1alpha Replay Config Args - The configuration used for the
Replay
. - location str
- project str
- config Property Map
- The configuration used for the
Replay
. - location String
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Replay resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- Results
Summary Pulumi.Google Native. Policy Simulator. V1Alpha. Outputs. Google Cloud Policysimulator V1alpha Replay Results Summary Response - Summary statistics about the replayed log entries.
- State string
- The current state of the
Replay
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- Results
Summary GoogleCloud Policysimulator V1alpha Replay Results Summary Response - Summary statistics about the replayed log entries.
- State string
- The current state of the
Replay
.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- results
Summary GoogleCloud Policysimulator V1alpha Replay Results Summary Response - Summary statistics about the replayed log entries.
- state String
- The current state of the
Replay
.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- results
Summary GoogleCloud Policysimulator V1alpha Replay Results Summary Response - Summary statistics about the replayed log entries.
- state string
- The current state of the
Replay
.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- results_
summary GoogleCloud Policysimulator V1alpha Replay Results Summary Response - Summary statistics about the replayed log entries.
- state str
- The current state of the
Replay
.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the
Replay
, which has the following format:{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}
, where{resource-id}
is the ID of the project, folder, or organization that owns the Replay. Example:projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36
- results
Summary Property Map - Summary statistics about the replayed log entries.
- state String
- The current state of the
Replay
.
Supporting Types
GoogleCloudPolicysimulatorV1alphaReplayConfig, GoogleCloudPolicysimulatorV1alphaReplayConfigArgs
- Log
Source Pulumi.Google Native. Policy Simulator. V1Alpha. Google Cloud Policysimulator V1alpha Replay Config Log Source - The logs to use as input for the Replay.
- Policy
Overlay Dictionary<string, string> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- Log
Source GoogleCloud Policysimulator V1alpha Replay Config Log Source - The logs to use as input for the Replay.
- Policy
Overlay map[string]string - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source GoogleCloud Policysimulator V1alpha Replay Config Log Source - The logs to use as input for the Replay.
- policy
Overlay Map<String,String> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source GoogleCloud Policysimulator V1alpha Replay Config Log Source - The logs to use as input for the Replay.
- policy
Overlay {[key: string]: string} - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log_
source GoogleCloud Policysimulator V1alpha Replay Config Log Source - The logs to use as input for the Replay.
- policy_
overlay Mapping[str, str] - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source "LOG_SOURCE_UNSPECIFIED" | "RECENT_ACCESSES" - The logs to use as input for the Replay.
- policy
Overlay Map<String> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
GoogleCloudPolicysimulatorV1alphaReplayConfigLogSource, GoogleCloudPolicysimulatorV1alphaReplayConfigLogSourceArgs
- Log
Source Unspecified - LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - Recent
Accesses - RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
- Google
Cloud Policysimulator V1alpha Replay Config Log Source Log Source Unspecified - LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - Google
Cloud Policysimulator V1alpha Replay Config Log Source Recent Accesses - RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
- Log
Source Unspecified - LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - Recent
Accesses - RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
- Log
Source Unspecified - LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - Recent
Accesses - RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
- LOG_SOURCE_UNSPECIFIED
- LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - RECENT_ACCESSES
- RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
- "LOG_SOURCE_UNSPECIFIED"
- LOG_SOURCE_UNSPECIFIEDAn unspecified log source. If the log source is unspecified, the Replay defaults to using
RECENT_ACCESSES
. - "RECENT_ACCESSES"
- RECENT_ACCESSESAll access logs from the last 90 days. These logs may not include logs from the most recent 7 days.
GoogleCloudPolicysimulatorV1alphaReplayConfigResponse, GoogleCloudPolicysimulatorV1alphaReplayConfigResponseArgs
- Log
Source string - The logs to use as input for the Replay.
- Policy
Overlay Dictionary<string, string> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- Log
Source string - The logs to use as input for the Replay.
- Policy
Overlay map[string]string - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source String - The logs to use as input for the Replay.
- policy
Overlay Map<String,String> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source string - The logs to use as input for the Replay.
- policy
Overlay {[key: string]: string} - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log_
source str - The logs to use as input for the Replay.
- policy_
overlay Mapping[str, str] - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
- log
Source String - The logs to use as input for the Replay.
- policy
Overlay Map<String> - A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example,
//cloudresourcemanager.googleapis.com/projects/my-project
. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.
GoogleCloudPolicysimulatorV1alphaReplayResultsSummaryResponse, GoogleCloudPolicysimulatorV1alphaReplayResultsSummaryResponseArgs
- Difference
Count int - The number of replayed log entries with a difference between baseline and simulated policies.
- Error
Count int - The number of log entries that could not be replayed.
- Log
Count int - The total number of log entries replayed.
- Newest
Date Pulumi.Google Native. Policy Simulator. V1Alpha. Inputs. Google Type Date Response - The date of the newest log entry replayed.
- Oldest
Date Pulumi.Google Native. Policy Simulator. V1Alpha. Inputs. Google Type Date Response - The date of the oldest log entry replayed.
- Unchanged
Count int - The number of replayed log entries with no difference between baseline and simulated policies.
- Difference
Count int - The number of replayed log entries with a difference between baseline and simulated policies.
- Error
Count int - The number of log entries that could not be replayed.
- Log
Count int - The total number of log entries replayed.
- Newest
Date GoogleType Date Response - The date of the newest log entry replayed.
- Oldest
Date GoogleType Date Response - The date of the oldest log entry replayed.
- Unchanged
Count int - The number of replayed log entries with no difference between baseline and simulated policies.
- difference
Count Integer - The number of replayed log entries with a difference between baseline and simulated policies.
- error
Count Integer - The number of log entries that could not be replayed.
- log
Count Integer - The total number of log entries replayed.
- newest
Date GoogleType Date Response - The date of the newest log entry replayed.
- oldest
Date GoogleType Date Response - The date of the oldest log entry replayed.
- unchanged
Count Integer - The number of replayed log entries with no difference between baseline and simulated policies.
- difference
Count number - The number of replayed log entries with a difference between baseline and simulated policies.
- error
Count number - The number of log entries that could not be replayed.
- log
Count number - The total number of log entries replayed.
- newest
Date GoogleType Date Response - The date of the newest log entry replayed.
- oldest
Date GoogleType Date Response - The date of the oldest log entry replayed.
- unchanged
Count number - The number of replayed log entries with no difference between baseline and simulated policies.
- difference_
count int - The number of replayed log entries with a difference between baseline and simulated policies.
- error_
count int - The number of log entries that could not be replayed.
- log_
count int - The total number of log entries replayed.
- newest_
date GoogleType Date Response - The date of the newest log entry replayed.
- oldest_
date GoogleType Date Response - The date of the oldest log entry replayed.
- unchanged_
count int - The number of replayed log entries with no difference between baseline and simulated policies.
- difference
Count Number - The number of replayed log entries with a difference between baseline and simulated policies.
- error
Count Number - The number of log entries that could not be replayed.
- log
Count Number - The total number of log entries replayed.
- newest
Date Property Map - The date of the newest log entry replayed.
- oldest
Date Property Map - The date of the oldest log entry replayed.
- unchanged
Count Number - The number of replayed log entries with no difference between baseline and simulated policies.
GoogleTypeDateResponse, GoogleTypeDateResponseArgs
- Day int
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- Month int
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- Year int
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- Day int
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- Month int
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- Year int
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- day Integer
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- month Integer
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- year Integer
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- day number
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- month number
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- year number
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- day int
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- month int
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- year int
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- day Number
- Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
- month Number
- Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
- year Number
- Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.