pulumi-aws 7.11.1__py3-none-any.whl → 7.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_aws/__init__.py +57 -0
- pulumi_aws/acm/certificate.py +20 -20
- pulumi_aws/acmpca/certificate.py +8 -8
- pulumi_aws/apigateway/account.py +0 -4
- pulumi_aws/appflow/_inputs.py +33 -0
- pulumi_aws/appflow/outputs.py +22 -0
- pulumi_aws/appsync/graph_ql_api.py +84 -0
- pulumi_aws/bedrock/_inputs.py +97 -21
- pulumi_aws/bedrock/agent_agent_alias.py +94 -0
- pulumi_aws/bedrock/agentcore_agent_runtime.py +4 -4
- pulumi_aws/bedrock/agentcore_browser.py +42 -0
- pulumi_aws/bedrock/agentcore_gateway_target.py +217 -7
- pulumi_aws/bedrock/agentcore_memory.py +37 -9
- pulumi_aws/bedrock/agentcore_oauth2_credential_provider.py +38 -0
- pulumi_aws/bedrock/outputs.py +64 -17
- pulumi_aws/cloudfront/_inputs.py +15 -14
- pulumi_aws/cloudfront/distribution.py +28 -0
- pulumi_aws/cloudfront/outputs.py +10 -9
- pulumi_aws/cloudhsmv2/cluster.py +64 -0
- pulumi_aws/cloudwatch/_inputs.py +9 -8
- pulumi_aws/cloudwatch/contributor_managed_insight_rule.py +20 -0
- pulumi_aws/cloudwatch/log_delivery_destination.py +53 -12
- pulumi_aws/cloudwatch/outputs.py +6 -5
- pulumi_aws/codebuild/webhook.py +16 -16
- pulumi_aws/codepipeline/webhook.py +16 -16
- pulumi_aws/connect/_inputs.py +50 -4
- pulumi_aws/connect/outputs.py +95 -4
- pulumi_aws/connect/routing_profile.py +42 -18
- pulumi_aws/datasync/location_fsx_ontap_file_system.py +34 -0
- pulumi_aws/datazone/project.py +24 -0
- pulumi_aws/detective/organization_configuration.py +20 -0
- pulumi_aws/dms/_inputs.py +3 -3
- pulumi_aws/dms/outputs.py +2 -2
- pulumi_aws/ec2/__init__.py +1 -0
- pulumi_aws/ec2/_inputs.py +182 -0
- pulumi_aws/ec2/allowed_images_settings.py +338 -0
- pulumi_aws/ec2/get_coip_pools.py +24 -0
- pulumi_aws/ec2/image_block_public_access.py +48 -1
- pulumi_aws/ec2/outputs.py +167 -0
- pulumi_aws/ec2/security_group.py +6 -6
- pulumi_aws/ec2/serial_console_access.py +50 -3
- pulumi_aws/ec2/vpc_endpoint.py +92 -0
- pulumi_aws/ec2clientvpn/authorization_rule.py +7 -7
- pulumi_aws/ec2clientvpn/route.py +7 -7
- pulumi_aws/ec2transitgateway/instance_connect_endpoint.py +47 -0
- pulumi_aws/ecrpublic/get_images.py +24 -0
- pulumi_aws/ecs/_inputs.py +172 -33
- pulumi_aws/ecs/get_service.py +318 -7
- pulumi_aws/ecs/outputs.py +957 -86
- pulumi_aws/ecs/service.py +76 -0
- pulumi_aws/eks/_inputs.py +195 -5
- pulumi_aws/eks/outputs.py +164 -4
- pulumi_aws/elasticache/_inputs.py +154 -0
- pulumi_aws/elasticache/get_replication_group.py +23 -9
- pulumi_aws/elasticache/outputs.py +204 -0
- pulumi_aws/elasticache/replication_group.py +115 -0
- pulumi_aws/elasticache/reserved_cache_node.py +28 -0
- pulumi_aws/finspace/kx_cluster.py +76 -0
- pulumi_aws/fis/__init__.py +1 -0
- pulumi_aws/fis/target_account_configuration.py +401 -0
- pulumi_aws/glue/job.py +7 -7
- pulumi_aws/guardduty/malware_protection_plan.py +50 -0
- pulumi_aws/guardduty/member_detector_feature.py +42 -0
- pulumi_aws/invoicing/__init__.py +11 -0
- pulumi_aws/invoicing/_inputs.py +128 -0
- pulumi_aws/invoicing/invoice_unit.py +620 -0
- pulumi_aws/invoicing/outputs.py +99 -0
- pulumi_aws/iot/ca_certificate.py +32 -32
- pulumi_aws/iot/get_registration_code.py +8 -8
- pulumi_aws/ivschat/logging_configuration.py +28 -0
- pulumi_aws/kinesis/get_stream.py +15 -1
- pulumi_aws/kinesis/stream.py +47 -0
- pulumi_aws/kms/key.py +7 -7
- pulumi_aws/licensemanager/license_grant.py +36 -0
- pulumi_aws/m2/environment.py +150 -0
- pulumi_aws/networkfirewall/tls_inspection_configuration.py +84 -0
- pulumi_aws/networkflowmonitor/__init__.py +12 -0
- pulumi_aws/networkflowmonitor/_inputs.py +412 -0
- pulumi_aws/networkflowmonitor/monitor.py +568 -0
- pulumi_aws/networkflowmonitor/outputs.py +302 -0
- pulumi_aws/networkflowmonitor/scope.py +443 -0
- pulumi_aws/observabilityadmin/__init__.py +11 -0
- pulumi_aws/observabilityadmin/_inputs.py +506 -0
- pulumi_aws/observabilityadmin/centralization_rule_for_organization.py +637 -0
- pulumi_aws/observabilityadmin/outputs.py +415 -0
- pulumi_aws/opensearch/_inputs.py +92 -133
- pulumi_aws/opensearch/authorize_vpc_endpoint_access.py +4 -4
- pulumi_aws/opensearch/domain.py +60 -0
- pulumi_aws/opensearch/get_domain.py +16 -9
- pulumi_aws/opensearch/outputs.py +131 -2
- pulumi_aws/organizations/get_policies.py +2 -2
- pulumi_aws/organizations/get_policies_for_target.py +2 -2
- pulumi_aws/organizations/get_policy.py +1 -1
- pulumi_aws/organizations/organization.py +7 -7
- pulumi_aws/organizations/policy.py +35 -7
- pulumi_aws/pulumi-plugin.json +1 -1
- pulumi_aws/quicksight/analysis.py +108 -0
- pulumi_aws/quicksight/dashboard.py +110 -0
- pulumi_aws/quicksight/template.py +126 -0
- pulumi_aws/redshift/cluster_snapshot.py +28 -0
- pulumi_aws/redshift/get_cluster.py +52 -0
- pulumi_aws/redshift/snapshot_copy_grant.py +22 -0
- pulumi_aws/route53/profiles_association.py +30 -0
- pulumi_aws/route53/profiles_resource_association.py +34 -0
- pulumi_aws/s3control/multi_region_access_point_policy.py +76 -0
- pulumi_aws/s3tables/table.py +76 -1
- pulumi_aws/s3tables/table_bucket.py +78 -3
- pulumi_aws/sagemaker/_inputs.py +225 -232
- pulumi_aws/sagemaker/endpoint_configuration.py +111 -64
- pulumi_aws/sagemaker/outputs.py +154 -158
- pulumi_aws/ssmincidents/get_response_plan.py +14 -0
- pulumi_aws/ssoadmin/account_assignment.py +4 -4
- pulumi_aws/transfer/profile.py +20 -0
- pulumi_aws/transfer/server.py +7 -0
- pulumi_aws/transfer/ssh_key.py +6 -6
- pulumi_aws/wafv2/rule_group.py +440 -0
- pulumi_aws/workspacesweb/session_logger_association.py +80 -0
- pulumi_aws/workspacesweb/trust_store_association.py +24 -0
- {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/METADATA +1 -1
- {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/RECORD +122 -107
- {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/WHEEL +0 -0
- {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['ScopeArgs', 'Scope']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class ScopeArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
26
|
+
targets: Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]] = None,
|
|
27
|
+
timeouts: Optional[pulumi.Input['ScopeTimeoutsArgs']] = None):
|
|
28
|
+
"""
|
|
29
|
+
The set of arguments for constructing a Scope resource.
|
|
30
|
+
:param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
31
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]] targets: The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
33
|
+
|
|
34
|
+
The following arguments are optional:
|
|
35
|
+
"""
|
|
36
|
+
if region is not None:
|
|
37
|
+
pulumi.set(__self__, "region", region)
|
|
38
|
+
if tags is not None:
|
|
39
|
+
pulumi.set(__self__, "tags", tags)
|
|
40
|
+
if targets is not None:
|
|
41
|
+
pulumi.set(__self__, "targets", targets)
|
|
42
|
+
if timeouts is not None:
|
|
43
|
+
pulumi.set(__self__, "timeouts", timeouts)
|
|
44
|
+
|
|
45
|
+
@_builtins.property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def region(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
48
|
+
"""
|
|
49
|
+
Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "region")
|
|
52
|
+
|
|
53
|
+
@region.setter
|
|
54
|
+
def region(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
55
|
+
pulumi.set(self, "region", value)
|
|
56
|
+
|
|
57
|
+
@_builtins.property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
60
|
+
"""
|
|
61
|
+
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "tags")
|
|
64
|
+
|
|
65
|
+
@tags.setter
|
|
66
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
67
|
+
pulumi.set(self, "tags", value)
|
|
68
|
+
|
|
69
|
+
@_builtins.property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def targets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]]:
|
|
72
|
+
"""
|
|
73
|
+
The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
74
|
+
|
|
75
|
+
The following arguments are optional:
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "targets")
|
|
78
|
+
|
|
79
|
+
@targets.setter
|
|
80
|
+
def targets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]]):
|
|
81
|
+
pulumi.set(self, "targets", value)
|
|
82
|
+
|
|
83
|
+
@_builtins.property
|
|
84
|
+
@pulumi.getter
|
|
85
|
+
def timeouts(self) -> Optional[pulumi.Input['ScopeTimeoutsArgs']]:
|
|
86
|
+
return pulumi.get(self, "timeouts")
|
|
87
|
+
|
|
88
|
+
@timeouts.setter
|
|
89
|
+
def timeouts(self, value: Optional[pulumi.Input['ScopeTimeoutsArgs']]):
|
|
90
|
+
pulumi.set(self, "timeouts", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pulumi.input_type
|
|
94
|
+
class _ScopeState:
|
|
95
|
+
def __init__(__self__, *,
|
|
96
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
scope_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
98
|
+
scope_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
99
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
100
|
+
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
101
|
+
targets: Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]] = None,
|
|
102
|
+
timeouts: Optional[pulumi.Input['ScopeTimeoutsArgs']] = None):
|
|
103
|
+
"""
|
|
104
|
+
Input properties used for looking up and filtering Scope resources.
|
|
105
|
+
:param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
106
|
+
:param pulumi.Input[_builtins.str] scope_arn: The Amazon Resource Name (ARN) of the scope.
|
|
107
|
+
:param pulumi.Input[_builtins.str] scope_id: The identifier for the scope that includes the resources you want to get data results for.
|
|
108
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
109
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
|
|
110
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]] targets: The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
111
|
+
|
|
112
|
+
The following arguments are optional:
|
|
113
|
+
"""
|
|
114
|
+
if region is not None:
|
|
115
|
+
pulumi.set(__self__, "region", region)
|
|
116
|
+
if scope_arn is not None:
|
|
117
|
+
pulumi.set(__self__, "scope_arn", scope_arn)
|
|
118
|
+
if scope_id is not None:
|
|
119
|
+
pulumi.set(__self__, "scope_id", scope_id)
|
|
120
|
+
if tags is not None:
|
|
121
|
+
pulumi.set(__self__, "tags", tags)
|
|
122
|
+
if tags_all is not None:
|
|
123
|
+
pulumi.set(__self__, "tags_all", tags_all)
|
|
124
|
+
if targets is not None:
|
|
125
|
+
pulumi.set(__self__, "targets", targets)
|
|
126
|
+
if timeouts is not None:
|
|
127
|
+
pulumi.set(__self__, "timeouts", timeouts)
|
|
128
|
+
|
|
129
|
+
@_builtins.property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def region(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
132
|
+
"""
|
|
133
|
+
Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "region")
|
|
136
|
+
|
|
137
|
+
@region.setter
|
|
138
|
+
def region(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
139
|
+
pulumi.set(self, "region", value)
|
|
140
|
+
|
|
141
|
+
@_builtins.property
|
|
142
|
+
@pulumi.getter(name="scopeArn")
|
|
143
|
+
def scope_arn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
144
|
+
"""
|
|
145
|
+
The Amazon Resource Name (ARN) of the scope.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "scope_arn")
|
|
148
|
+
|
|
149
|
+
@scope_arn.setter
|
|
150
|
+
def scope_arn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
151
|
+
pulumi.set(self, "scope_arn", value)
|
|
152
|
+
|
|
153
|
+
@_builtins.property
|
|
154
|
+
@pulumi.getter(name="scopeId")
|
|
155
|
+
def scope_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
156
|
+
"""
|
|
157
|
+
The identifier for the scope that includes the resources you want to get data results for.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "scope_id")
|
|
160
|
+
|
|
161
|
+
@scope_id.setter
|
|
162
|
+
def scope_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
163
|
+
pulumi.set(self, "scope_id", value)
|
|
164
|
+
|
|
165
|
+
@_builtins.property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
168
|
+
"""
|
|
169
|
+
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "tags")
|
|
172
|
+
|
|
173
|
+
@tags.setter
|
|
174
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
175
|
+
pulumi.set(self, "tags", value)
|
|
176
|
+
|
|
177
|
+
@_builtins.property
|
|
178
|
+
@pulumi.getter(name="tagsAll")
|
|
179
|
+
def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
180
|
+
"""
|
|
181
|
+
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "tags_all")
|
|
184
|
+
|
|
185
|
+
@tags_all.setter
|
|
186
|
+
def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
187
|
+
pulumi.set(self, "tags_all", value)
|
|
188
|
+
|
|
189
|
+
@_builtins.property
|
|
190
|
+
@pulumi.getter
|
|
191
|
+
def targets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]]:
|
|
192
|
+
"""
|
|
193
|
+
The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
194
|
+
|
|
195
|
+
The following arguments are optional:
|
|
196
|
+
"""
|
|
197
|
+
return pulumi.get(self, "targets")
|
|
198
|
+
|
|
199
|
+
@targets.setter
|
|
200
|
+
def targets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScopeTargetArgs']]]]):
|
|
201
|
+
pulumi.set(self, "targets", value)
|
|
202
|
+
|
|
203
|
+
@_builtins.property
|
|
204
|
+
@pulumi.getter
|
|
205
|
+
def timeouts(self) -> Optional[pulumi.Input['ScopeTimeoutsArgs']]:
|
|
206
|
+
return pulumi.get(self, "timeouts")
|
|
207
|
+
|
|
208
|
+
@timeouts.setter
|
|
209
|
+
def timeouts(self, value: Optional[pulumi.Input['ScopeTimeoutsArgs']]):
|
|
210
|
+
pulumi.set(self, "timeouts", value)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
@pulumi.type_token("aws:networkflowmonitor/scope:Scope")
|
|
214
|
+
class Scope(pulumi.CustomResource):
|
|
215
|
+
@overload
|
|
216
|
+
def __init__(__self__,
|
|
217
|
+
resource_name: str,
|
|
218
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
219
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
220
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
221
|
+
targets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScopeTargetArgs', 'ScopeTargetArgsDict']]]]] = None,
|
|
222
|
+
timeouts: Optional[pulumi.Input[Union['ScopeTimeoutsArgs', 'ScopeTimeoutsArgsDict']]] = None,
|
|
223
|
+
__props__=None):
|
|
224
|
+
"""
|
|
225
|
+
Manages a Network Flow Monitor Scope.
|
|
226
|
+
|
|
227
|
+
## Example Usage
|
|
228
|
+
|
|
229
|
+
### Basic Usage
|
|
230
|
+
|
|
231
|
+
```python
|
|
232
|
+
import pulumi
|
|
233
|
+
import pulumi_aws as aws
|
|
234
|
+
|
|
235
|
+
current = aws.get_caller_identity()
|
|
236
|
+
example = aws.networkflowmonitor.Scope("example",
|
|
237
|
+
targets=[{
|
|
238
|
+
"region": "us-east-1",
|
|
239
|
+
"target_identifier": {
|
|
240
|
+
"target_type": "ACCOUNT",
|
|
241
|
+
"target_id": {
|
|
242
|
+
"account_id": current.account_id,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
}],
|
|
246
|
+
tags={
|
|
247
|
+
"Name": "example",
|
|
248
|
+
})
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Import
|
|
252
|
+
|
|
253
|
+
Using `pulumi import`, import Network Flow Monitor Scope using the scope ID. For example:
|
|
254
|
+
|
|
255
|
+
```sh
|
|
256
|
+
$ pulumi import aws:networkflowmonitor/scope:Scope example example-scope-id
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
:param str resource_name: The name of the resource.
|
|
260
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
261
|
+
:param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
262
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
263
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScopeTargetArgs', 'ScopeTargetArgsDict']]]] targets: The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
264
|
+
|
|
265
|
+
The following arguments are optional:
|
|
266
|
+
"""
|
|
267
|
+
...
|
|
268
|
+
@overload
|
|
269
|
+
def __init__(__self__,
|
|
270
|
+
resource_name: str,
|
|
271
|
+
args: Optional[ScopeArgs] = None,
|
|
272
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
273
|
+
"""
|
|
274
|
+
Manages a Network Flow Monitor Scope.
|
|
275
|
+
|
|
276
|
+
## Example Usage
|
|
277
|
+
|
|
278
|
+
### Basic Usage
|
|
279
|
+
|
|
280
|
+
```python
|
|
281
|
+
import pulumi
|
|
282
|
+
import pulumi_aws as aws
|
|
283
|
+
|
|
284
|
+
current = aws.get_caller_identity()
|
|
285
|
+
example = aws.networkflowmonitor.Scope("example",
|
|
286
|
+
targets=[{
|
|
287
|
+
"region": "us-east-1",
|
|
288
|
+
"target_identifier": {
|
|
289
|
+
"target_type": "ACCOUNT",
|
|
290
|
+
"target_id": {
|
|
291
|
+
"account_id": current.account_id,
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
}],
|
|
295
|
+
tags={
|
|
296
|
+
"Name": "example",
|
|
297
|
+
})
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Import
|
|
301
|
+
|
|
302
|
+
Using `pulumi import`, import Network Flow Monitor Scope using the scope ID. For example:
|
|
303
|
+
|
|
304
|
+
```sh
|
|
305
|
+
$ pulumi import aws:networkflowmonitor/scope:Scope example example-scope-id
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
:param str resource_name: The name of the resource.
|
|
309
|
+
:param ScopeArgs args: The arguments to use to populate this resource's properties.
|
|
310
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
311
|
+
"""
|
|
312
|
+
...
|
|
313
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
314
|
+
resource_args, opts = _utilities.get_resource_args_opts(ScopeArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
315
|
+
if resource_args is not None:
|
|
316
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
317
|
+
else:
|
|
318
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
319
|
+
|
|
320
|
+
def _internal_init(__self__,
|
|
321
|
+
resource_name: str,
|
|
322
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
323
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
324
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
325
|
+
targets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScopeTargetArgs', 'ScopeTargetArgsDict']]]]] = None,
|
|
326
|
+
timeouts: Optional[pulumi.Input[Union['ScopeTimeoutsArgs', 'ScopeTimeoutsArgsDict']]] = None,
|
|
327
|
+
__props__=None):
|
|
328
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
329
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
330
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
331
|
+
if opts.id is None:
|
|
332
|
+
if __props__ is not None:
|
|
333
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
334
|
+
__props__ = ScopeArgs.__new__(ScopeArgs)
|
|
335
|
+
|
|
336
|
+
__props__.__dict__["region"] = region
|
|
337
|
+
__props__.__dict__["tags"] = tags
|
|
338
|
+
__props__.__dict__["targets"] = targets
|
|
339
|
+
__props__.__dict__["timeouts"] = timeouts
|
|
340
|
+
__props__.__dict__["scope_arn"] = None
|
|
341
|
+
__props__.__dict__["scope_id"] = None
|
|
342
|
+
__props__.__dict__["tags_all"] = None
|
|
343
|
+
super(Scope, __self__).__init__(
|
|
344
|
+
'aws:networkflowmonitor/scope:Scope',
|
|
345
|
+
resource_name,
|
|
346
|
+
__props__,
|
|
347
|
+
opts)
|
|
348
|
+
|
|
349
|
+
@staticmethod
|
|
350
|
+
def get(resource_name: str,
|
|
351
|
+
id: pulumi.Input[str],
|
|
352
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
353
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
354
|
+
scope_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
355
|
+
scope_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
356
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
357
|
+
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
358
|
+
targets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScopeTargetArgs', 'ScopeTargetArgsDict']]]]] = None,
|
|
359
|
+
timeouts: Optional[pulumi.Input[Union['ScopeTimeoutsArgs', 'ScopeTimeoutsArgsDict']]] = None) -> 'Scope':
|
|
360
|
+
"""
|
|
361
|
+
Get an existing Scope resource's state with the given name, id, and optional extra
|
|
362
|
+
properties used to qualify the lookup.
|
|
363
|
+
|
|
364
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
365
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
366
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
367
|
+
:param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
368
|
+
:param pulumi.Input[_builtins.str] scope_arn: The Amazon Resource Name (ARN) of the scope.
|
|
369
|
+
:param pulumi.Input[_builtins.str] scope_id: The identifier for the scope that includes the resources you want to get data results for.
|
|
370
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
371
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
|
|
372
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScopeTargetArgs', 'ScopeTargetArgsDict']]]] targets: The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
373
|
+
|
|
374
|
+
The following arguments are optional:
|
|
375
|
+
"""
|
|
376
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
377
|
+
|
|
378
|
+
__props__ = _ScopeState.__new__(_ScopeState)
|
|
379
|
+
|
|
380
|
+
__props__.__dict__["region"] = region
|
|
381
|
+
__props__.__dict__["scope_arn"] = scope_arn
|
|
382
|
+
__props__.__dict__["scope_id"] = scope_id
|
|
383
|
+
__props__.__dict__["tags"] = tags
|
|
384
|
+
__props__.__dict__["tags_all"] = tags_all
|
|
385
|
+
__props__.__dict__["targets"] = targets
|
|
386
|
+
__props__.__dict__["timeouts"] = timeouts
|
|
387
|
+
return Scope(resource_name, opts=opts, __props__=__props__)
|
|
388
|
+
|
|
389
|
+
@_builtins.property
|
|
390
|
+
@pulumi.getter
|
|
391
|
+
def region(self) -> pulumi.Output[_builtins.str]:
|
|
392
|
+
"""
|
|
393
|
+
Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
394
|
+
"""
|
|
395
|
+
return pulumi.get(self, "region")
|
|
396
|
+
|
|
397
|
+
@_builtins.property
|
|
398
|
+
@pulumi.getter(name="scopeArn")
|
|
399
|
+
def scope_arn(self) -> pulumi.Output[_builtins.str]:
|
|
400
|
+
"""
|
|
401
|
+
The Amazon Resource Name (ARN) of the scope.
|
|
402
|
+
"""
|
|
403
|
+
return pulumi.get(self, "scope_arn")
|
|
404
|
+
|
|
405
|
+
@_builtins.property
|
|
406
|
+
@pulumi.getter(name="scopeId")
|
|
407
|
+
def scope_id(self) -> pulumi.Output[_builtins.str]:
|
|
408
|
+
"""
|
|
409
|
+
The identifier for the scope that includes the resources you want to get data results for.
|
|
410
|
+
"""
|
|
411
|
+
return pulumi.get(self, "scope_id")
|
|
412
|
+
|
|
413
|
+
@_builtins.property
|
|
414
|
+
@pulumi.getter
|
|
415
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
416
|
+
"""
|
|
417
|
+
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
418
|
+
"""
|
|
419
|
+
return pulumi.get(self, "tags")
|
|
420
|
+
|
|
421
|
+
@_builtins.property
|
|
422
|
+
@pulumi.getter(name="tagsAll")
|
|
423
|
+
def tags_all(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
|
424
|
+
"""
|
|
425
|
+
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
|
|
426
|
+
"""
|
|
427
|
+
return pulumi.get(self, "tags_all")
|
|
428
|
+
|
|
429
|
+
@_builtins.property
|
|
430
|
+
@pulumi.getter
|
|
431
|
+
def targets(self) -> pulumi.Output[Optional[Sequence['outputs.ScopeTarget']]]:
|
|
432
|
+
"""
|
|
433
|
+
The targets to define the scope to be monitored. A target is an array of target resources, which are currently Region-account pairs.
|
|
434
|
+
|
|
435
|
+
The following arguments are optional:
|
|
436
|
+
"""
|
|
437
|
+
return pulumi.get(self, "targets")
|
|
438
|
+
|
|
439
|
+
@_builtins.property
|
|
440
|
+
@pulumi.getter
|
|
441
|
+
def timeouts(self) -> pulumi.Output[Optional['outputs.ScopeTimeouts']]:
|
|
442
|
+
return pulumi.get(self, "timeouts")
|
|
443
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
from .. import _utilities
|
|
7
|
+
import typing
|
|
8
|
+
# Export this package's modules as members:
|
|
9
|
+
from .centralization_rule_for_organization import *
|
|
10
|
+
from ._inputs import *
|
|
11
|
+
from . import outputs
|