pulumi-aws-native 1.38.0a1762150096__py3-none-any.whl → 1.38.0a1762176731__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.
Potentially problematic release.
This version of pulumi-aws-native might be problematic. Click here for more details.
- pulumi_aws_native/__init__.py +13 -0
- pulumi_aws_native/batch/_inputs.py +9 -0
- pulumi_aws_native/batch/job_definition.py +8 -0
- pulumi_aws_native/batch/outputs.py +6 -0
- pulumi_aws_native/bedrock/automated_reasoning_policy.py +51 -0
- pulumi_aws_native/bedrock/get_automated_reasoning_policy.py +12 -1
- pulumi_aws_native/ce/_enums.py +3 -0
- pulumi_aws_native/cleanrooms/configured_table.py +4 -4
- pulumi_aws_native/cleanrooms/get_configured_table.py +1 -1
- pulumi_aws_native/connectcampaignsv2/_inputs.py +28 -0
- pulumi_aws_native/connectcampaignsv2/outputs.py +16 -0
- pulumi_aws_native/datazone/connection.py +30 -1
- pulumi_aws_native/ec2/get_volume.py +37 -15
- pulumi_aws_native/ec2/volume.py +115 -74
- pulumi_aws_native/ecs/_enums.py +8 -0
- pulumi_aws_native/ecs/_inputs.py +96 -15
- pulumi_aws_native/ecs/outputs.py +60 -10
- pulumi_aws_native/eks/_enums.py +11 -0
- pulumi_aws_native/eks/_inputs.py +199 -1
- pulumi_aws_native/eks/get_nodegroup.py +1 -0
- pulumi_aws_native/eks/nodegroup.py +1 -0
- pulumi_aws_native/eks/outputs.py +169 -1
- pulumi_aws_native/networkfirewall/_inputs.py +7 -0
- pulumi_aws_native/networkfirewall/firewall.py +3 -0
- pulumi_aws_native/networkfirewall/get_firewall.py +3 -0
- pulumi_aws_native/networkfirewall/outputs.py +4 -0
- pulumi_aws_native/pulumi-plugin.json +1 -1
- pulumi_aws_native/rtbfabric/_enums.py +3 -0
- pulumi_aws_native/rtbfabric/_inputs.py +70 -0
- pulumi_aws_native/rtbfabric/get_link.py +18 -0
- pulumi_aws_native/rtbfabric/get_requester_gateway.py +15 -0
- pulumi_aws_native/rtbfabric/get_responder_gateway.py +30 -0
- pulumi_aws_native/rtbfabric/link.py +51 -0
- pulumi_aws_native/rtbfabric/outputs.py +46 -0
- pulumi_aws_native/rtbfabric/requester_gateway.py +40 -0
- pulumi_aws_native/rtbfabric/responder_gateway.py +80 -0
- pulumi_aws_native/s3/_enums.py +1 -1
- pulumi_aws_native/s3/_inputs.py +11 -5
- pulumi_aws_native/s3/outputs.py +10 -4
- pulumi_aws_native/s3vectors/__init__.py +17 -0
- pulumi_aws_native/s3vectors/_enums.py +39 -0
- pulumi_aws_native/s3vectors/_inputs.py +138 -0
- pulumi_aws_native/s3vectors/get_index.py +79 -0
- pulumi_aws_native/s3vectors/get_vector_bucket.py +79 -0
- pulumi_aws_native/s3vectors/get_vector_bucket_policy.py +69 -0
- pulumi_aws_native/s3vectors/index.py +265 -0
- pulumi_aws_native/s3vectors/outputs.py +129 -0
- pulumi_aws_native/s3vectors/vector_bucket.py +157 -0
- pulumi_aws_native/s3vectors/vector_bucket_policy.py +164 -0
- pulumi_aws_native/sso/_enums.py +1 -1
- pulumi_aws_native/sso/assignment.py +8 -8
- pulumi_aws_native/transfer/_inputs.py +9 -0
- pulumi_aws_native/transfer/connector.py +3 -0
- pulumi_aws_native/transfer/get_connector.py +3 -0
- pulumi_aws_native/transfer/outputs.py +6 -0
- {pulumi_aws_native-1.38.0a1762150096.dist-info → pulumi_aws_native-1.38.0a1762176731.dist-info}/METADATA +1 -1
- {pulumi_aws_native-1.38.0a1762150096.dist-info → pulumi_aws_native-1.38.0a1762176731.dist-info}/RECORD +59 -49
- {pulumi_aws_native-1.38.0a1762150096.dist-info → pulumi_aws_native-1.38.0a1762176731.dist-info}/WHEEL +0 -0
- {pulumi_aws_native-1.38.0a1762150096.dist-info → pulumi_aws_native-1.38.0a1762176731.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetIndexResult',
|
|
19
|
+
'AwaitableGetIndexResult',
|
|
20
|
+
'get_index',
|
|
21
|
+
'get_index_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetIndexResult:
|
|
26
|
+
def __init__(__self__, creation_time=None, index_arn=None):
|
|
27
|
+
if creation_time and not isinstance(creation_time, str):
|
|
28
|
+
raise TypeError("Expected argument 'creation_time' to be a str")
|
|
29
|
+
pulumi.set(__self__, "creation_time", creation_time)
|
|
30
|
+
if index_arn and not isinstance(index_arn, str):
|
|
31
|
+
raise TypeError("Expected argument 'index_arn' to be a str")
|
|
32
|
+
pulumi.set(__self__, "index_arn", index_arn)
|
|
33
|
+
|
|
34
|
+
@_builtins.property
|
|
35
|
+
@pulumi.getter(name="creationTime")
|
|
36
|
+
def creation_time(self) -> Optional[_builtins.str]:
|
|
37
|
+
return pulumi.get(self, "creation_time")
|
|
38
|
+
|
|
39
|
+
@_builtins.property
|
|
40
|
+
@pulumi.getter(name="indexArn")
|
|
41
|
+
def index_arn(self) -> Optional[_builtins.str]:
|
|
42
|
+
return pulumi.get(self, "index_arn")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class AwaitableGetIndexResult(GetIndexResult):
|
|
46
|
+
# pylint: disable=using-constant-test
|
|
47
|
+
def __await__(self):
|
|
48
|
+
if False:
|
|
49
|
+
yield self
|
|
50
|
+
return GetIndexResult(
|
|
51
|
+
creation_time=self.creation_time,
|
|
52
|
+
index_arn=self.index_arn)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def get_index(index_arn: Optional[_builtins.str] = None,
|
|
56
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIndexResult:
|
|
57
|
+
"""
|
|
58
|
+
Resource Type definition for AWS::S3Vectors::Index
|
|
59
|
+
"""
|
|
60
|
+
__args__ = dict()
|
|
61
|
+
__args__['indexArn'] = index_arn
|
|
62
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
63
|
+
__ret__ = pulumi.runtime.invoke('aws-native:s3vectors:getIndex', __args__, opts=opts, typ=GetIndexResult).value
|
|
64
|
+
|
|
65
|
+
return AwaitableGetIndexResult(
|
|
66
|
+
creation_time=pulumi.get(__ret__, 'creation_time'),
|
|
67
|
+
index_arn=pulumi.get(__ret__, 'index_arn'))
|
|
68
|
+
def get_index_output(index_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
69
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIndexResult]:
|
|
70
|
+
"""
|
|
71
|
+
Resource Type definition for AWS::S3Vectors::Index
|
|
72
|
+
"""
|
|
73
|
+
__args__ = dict()
|
|
74
|
+
__args__['indexArn'] = index_arn
|
|
75
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
76
|
+
__ret__ = pulumi.runtime.invoke_output('aws-native:s3vectors:getIndex', __args__, opts=opts, typ=GetIndexResult)
|
|
77
|
+
return __ret__.apply(lambda __response__: GetIndexResult(
|
|
78
|
+
creation_time=pulumi.get(__response__, 'creation_time'),
|
|
79
|
+
index_arn=pulumi.get(__response__, 'index_arn')))
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetVectorBucketResult',
|
|
19
|
+
'AwaitableGetVectorBucketResult',
|
|
20
|
+
'get_vector_bucket',
|
|
21
|
+
'get_vector_bucket_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetVectorBucketResult:
|
|
26
|
+
def __init__(__self__, creation_time=None, vector_bucket_arn=None):
|
|
27
|
+
if creation_time and not isinstance(creation_time, str):
|
|
28
|
+
raise TypeError("Expected argument 'creation_time' to be a str")
|
|
29
|
+
pulumi.set(__self__, "creation_time", creation_time)
|
|
30
|
+
if vector_bucket_arn and not isinstance(vector_bucket_arn, str):
|
|
31
|
+
raise TypeError("Expected argument 'vector_bucket_arn' to be a str")
|
|
32
|
+
pulumi.set(__self__, "vector_bucket_arn", vector_bucket_arn)
|
|
33
|
+
|
|
34
|
+
@_builtins.property
|
|
35
|
+
@pulumi.getter(name="creationTime")
|
|
36
|
+
def creation_time(self) -> Optional[_builtins.str]:
|
|
37
|
+
return pulumi.get(self, "creation_time")
|
|
38
|
+
|
|
39
|
+
@_builtins.property
|
|
40
|
+
@pulumi.getter(name="vectorBucketArn")
|
|
41
|
+
def vector_bucket_arn(self) -> Optional[_builtins.str]:
|
|
42
|
+
return pulumi.get(self, "vector_bucket_arn")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class AwaitableGetVectorBucketResult(GetVectorBucketResult):
|
|
46
|
+
# pylint: disable=using-constant-test
|
|
47
|
+
def __await__(self):
|
|
48
|
+
if False:
|
|
49
|
+
yield self
|
|
50
|
+
return GetVectorBucketResult(
|
|
51
|
+
creation_time=self.creation_time,
|
|
52
|
+
vector_bucket_arn=self.vector_bucket_arn)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def get_vector_bucket(vector_bucket_arn: Optional[_builtins.str] = None,
|
|
56
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVectorBucketResult:
|
|
57
|
+
"""
|
|
58
|
+
Resource Type definition for AWS::S3Vectors::VectorBucket
|
|
59
|
+
"""
|
|
60
|
+
__args__ = dict()
|
|
61
|
+
__args__['vectorBucketArn'] = vector_bucket_arn
|
|
62
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
63
|
+
__ret__ = pulumi.runtime.invoke('aws-native:s3vectors:getVectorBucket', __args__, opts=opts, typ=GetVectorBucketResult).value
|
|
64
|
+
|
|
65
|
+
return AwaitableGetVectorBucketResult(
|
|
66
|
+
creation_time=pulumi.get(__ret__, 'creation_time'),
|
|
67
|
+
vector_bucket_arn=pulumi.get(__ret__, 'vector_bucket_arn'))
|
|
68
|
+
def get_vector_bucket_output(vector_bucket_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
69
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVectorBucketResult]:
|
|
70
|
+
"""
|
|
71
|
+
Resource Type definition for AWS::S3Vectors::VectorBucket
|
|
72
|
+
"""
|
|
73
|
+
__args__ = dict()
|
|
74
|
+
__args__['vectorBucketArn'] = vector_bucket_arn
|
|
75
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
76
|
+
__ret__ = pulumi.runtime.invoke_output('aws-native:s3vectors:getVectorBucket', __args__, opts=opts, typ=GetVectorBucketResult)
|
|
77
|
+
return __ret__.apply(lambda __response__: GetVectorBucketResult(
|
|
78
|
+
creation_time=pulumi.get(__response__, 'creation_time'),
|
|
79
|
+
vector_bucket_arn=pulumi.get(__response__, 'vector_bucket_arn')))
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetVectorBucketPolicyResult',
|
|
20
|
+
'AwaitableGetVectorBucketPolicyResult',
|
|
21
|
+
'get_vector_bucket_policy',
|
|
22
|
+
'get_vector_bucket_policy_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetVectorBucketPolicyResult:
|
|
27
|
+
def __init__(__self__, policy=None):
|
|
28
|
+
if policy and not isinstance(policy, dict):
|
|
29
|
+
raise TypeError("Expected argument 'policy' to be a dict")
|
|
30
|
+
pulumi.set(__self__, "policy", policy)
|
|
31
|
+
|
|
32
|
+
@_builtins.property
|
|
33
|
+
@pulumi.getter
|
|
34
|
+
def policy(self) -> Optional['outputs.VectorBucketPolicyPolicy']:
|
|
35
|
+
return pulumi.get(self, "policy")
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class AwaitableGetVectorBucketPolicyResult(GetVectorBucketPolicyResult):
|
|
39
|
+
# pylint: disable=using-constant-test
|
|
40
|
+
def __await__(self):
|
|
41
|
+
if False:
|
|
42
|
+
yield self
|
|
43
|
+
return GetVectorBucketPolicyResult(
|
|
44
|
+
policy=self.policy)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def get_vector_bucket_policy(vector_bucket_arn: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVectorBucketPolicyResult:
|
|
49
|
+
"""
|
|
50
|
+
Resource Type definition for AWS::S3Vectors::VectorBucketPolicy
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['vectorBucketArn'] = vector_bucket_arn
|
|
54
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
55
|
+
__ret__ = pulumi.runtime.invoke('aws-native:s3vectors:getVectorBucketPolicy', __args__, opts=opts, typ=GetVectorBucketPolicyResult).value
|
|
56
|
+
|
|
57
|
+
return AwaitableGetVectorBucketPolicyResult(
|
|
58
|
+
policy=pulumi.get(__ret__, 'policy'))
|
|
59
|
+
def get_vector_bucket_policy_output(vector_bucket_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
60
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVectorBucketPolicyResult]:
|
|
61
|
+
"""
|
|
62
|
+
Resource Type definition for AWS::S3Vectors::VectorBucketPolicy
|
|
63
|
+
"""
|
|
64
|
+
__args__ = dict()
|
|
65
|
+
__args__['vectorBucketArn'] = vector_bucket_arn
|
|
66
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
67
|
+
__ret__ = pulumi.runtime.invoke_output('aws-native:s3vectors:getVectorBucketPolicy', __args__, opts=opts, typ=GetVectorBucketPolicyResult)
|
|
68
|
+
return __ret__.apply(lambda __response__: GetVectorBucketPolicyResult(
|
|
69
|
+
policy=pulumi.get(__response__, 'policy')))
|
|
@@ -0,0 +1,265 @@
|
|
|
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 ._enums import *
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = ['IndexArgs', 'Index']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class IndexArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
data_type: pulumi.Input['IndexDataType'],
|
|
26
|
+
dimension: pulumi.Input[_builtins.int],
|
|
27
|
+
distance_metric: pulumi.Input['IndexDistanceMetric'],
|
|
28
|
+
index_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
metadata_configuration: Optional[pulumi.Input['IndexMetadataConfigurationArgs']] = None,
|
|
30
|
+
vector_bucket_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
vector_bucket_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
32
|
+
"""
|
|
33
|
+
The set of arguments for constructing a Index resource.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "data_type", data_type)
|
|
36
|
+
pulumi.set(__self__, "dimension", dimension)
|
|
37
|
+
pulumi.set(__self__, "distance_metric", distance_metric)
|
|
38
|
+
if index_name is not None:
|
|
39
|
+
pulumi.set(__self__, "index_name", index_name)
|
|
40
|
+
if metadata_configuration is not None:
|
|
41
|
+
pulumi.set(__self__, "metadata_configuration", metadata_configuration)
|
|
42
|
+
if vector_bucket_arn is not None:
|
|
43
|
+
pulumi.set(__self__, "vector_bucket_arn", vector_bucket_arn)
|
|
44
|
+
if vector_bucket_name is not None:
|
|
45
|
+
pulumi.set(__self__, "vector_bucket_name", vector_bucket_name)
|
|
46
|
+
|
|
47
|
+
@_builtins.property
|
|
48
|
+
@pulumi.getter(name="dataType")
|
|
49
|
+
def data_type(self) -> pulumi.Input['IndexDataType']:
|
|
50
|
+
return pulumi.get(self, "data_type")
|
|
51
|
+
|
|
52
|
+
@data_type.setter
|
|
53
|
+
def data_type(self, value: pulumi.Input['IndexDataType']):
|
|
54
|
+
pulumi.set(self, "data_type", value)
|
|
55
|
+
|
|
56
|
+
@_builtins.property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def dimension(self) -> pulumi.Input[_builtins.int]:
|
|
59
|
+
return pulumi.get(self, "dimension")
|
|
60
|
+
|
|
61
|
+
@dimension.setter
|
|
62
|
+
def dimension(self, value: pulumi.Input[_builtins.int]):
|
|
63
|
+
pulumi.set(self, "dimension", value)
|
|
64
|
+
|
|
65
|
+
@_builtins.property
|
|
66
|
+
@pulumi.getter(name="distanceMetric")
|
|
67
|
+
def distance_metric(self) -> pulumi.Input['IndexDistanceMetric']:
|
|
68
|
+
return pulumi.get(self, "distance_metric")
|
|
69
|
+
|
|
70
|
+
@distance_metric.setter
|
|
71
|
+
def distance_metric(self, value: pulumi.Input['IndexDistanceMetric']):
|
|
72
|
+
pulumi.set(self, "distance_metric", value)
|
|
73
|
+
|
|
74
|
+
@_builtins.property
|
|
75
|
+
@pulumi.getter(name="indexName")
|
|
76
|
+
def index_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
77
|
+
return pulumi.get(self, "index_name")
|
|
78
|
+
|
|
79
|
+
@index_name.setter
|
|
80
|
+
def index_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
81
|
+
pulumi.set(self, "index_name", value)
|
|
82
|
+
|
|
83
|
+
@_builtins.property
|
|
84
|
+
@pulumi.getter(name="metadataConfiguration")
|
|
85
|
+
def metadata_configuration(self) -> Optional[pulumi.Input['IndexMetadataConfigurationArgs']]:
|
|
86
|
+
return pulumi.get(self, "metadata_configuration")
|
|
87
|
+
|
|
88
|
+
@metadata_configuration.setter
|
|
89
|
+
def metadata_configuration(self, value: Optional[pulumi.Input['IndexMetadataConfigurationArgs']]):
|
|
90
|
+
pulumi.set(self, "metadata_configuration", value)
|
|
91
|
+
|
|
92
|
+
@_builtins.property
|
|
93
|
+
@pulumi.getter(name="vectorBucketArn")
|
|
94
|
+
def vector_bucket_arn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
95
|
+
return pulumi.get(self, "vector_bucket_arn")
|
|
96
|
+
|
|
97
|
+
@vector_bucket_arn.setter
|
|
98
|
+
def vector_bucket_arn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
99
|
+
pulumi.set(self, "vector_bucket_arn", value)
|
|
100
|
+
|
|
101
|
+
@_builtins.property
|
|
102
|
+
@pulumi.getter(name="vectorBucketName")
|
|
103
|
+
def vector_bucket_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
104
|
+
return pulumi.get(self, "vector_bucket_name")
|
|
105
|
+
|
|
106
|
+
@vector_bucket_name.setter
|
|
107
|
+
def vector_bucket_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
108
|
+
pulumi.set(self, "vector_bucket_name", value)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@pulumi.type_token("aws-native:s3vectors:Index")
|
|
112
|
+
class Index(pulumi.CustomResource):
|
|
113
|
+
@overload
|
|
114
|
+
def __init__(__self__,
|
|
115
|
+
resource_name: str,
|
|
116
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
117
|
+
data_type: Optional[pulumi.Input['IndexDataType']] = None,
|
|
118
|
+
dimension: Optional[pulumi.Input[_builtins.int]] = None,
|
|
119
|
+
distance_metric: Optional[pulumi.Input['IndexDistanceMetric']] = None,
|
|
120
|
+
index_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
121
|
+
metadata_configuration: Optional[pulumi.Input[Union['IndexMetadataConfigurationArgs', 'IndexMetadataConfigurationArgsDict']]] = None,
|
|
122
|
+
vector_bucket_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
123
|
+
vector_bucket_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
__props__=None):
|
|
125
|
+
"""
|
|
126
|
+
Resource Type definition for AWS::S3Vectors::Index
|
|
127
|
+
|
|
128
|
+
:param str resource_name: The name of the resource.
|
|
129
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
130
|
+
"""
|
|
131
|
+
...
|
|
132
|
+
@overload
|
|
133
|
+
def __init__(__self__,
|
|
134
|
+
resource_name: str,
|
|
135
|
+
args: IndexArgs,
|
|
136
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
137
|
+
"""
|
|
138
|
+
Resource Type definition for AWS::S3Vectors::Index
|
|
139
|
+
|
|
140
|
+
:param str resource_name: The name of the resource.
|
|
141
|
+
:param IndexArgs args: The arguments to use to populate this resource's properties.
|
|
142
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
143
|
+
"""
|
|
144
|
+
...
|
|
145
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
146
|
+
resource_args, opts = _utilities.get_resource_args_opts(IndexArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
147
|
+
if resource_args is not None:
|
|
148
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
149
|
+
else:
|
|
150
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
151
|
+
|
|
152
|
+
def _internal_init(__self__,
|
|
153
|
+
resource_name: str,
|
|
154
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
155
|
+
data_type: Optional[pulumi.Input['IndexDataType']] = None,
|
|
156
|
+
dimension: Optional[pulumi.Input[_builtins.int]] = None,
|
|
157
|
+
distance_metric: Optional[pulumi.Input['IndexDistanceMetric']] = None,
|
|
158
|
+
index_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
159
|
+
metadata_configuration: Optional[pulumi.Input[Union['IndexMetadataConfigurationArgs', 'IndexMetadataConfigurationArgsDict']]] = None,
|
|
160
|
+
vector_bucket_arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
161
|
+
vector_bucket_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
162
|
+
__props__=None):
|
|
163
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
164
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
165
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
166
|
+
if opts.id is None:
|
|
167
|
+
if __props__ is not None:
|
|
168
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
169
|
+
__props__ = IndexArgs.__new__(IndexArgs)
|
|
170
|
+
|
|
171
|
+
if data_type is None and not opts.urn:
|
|
172
|
+
raise TypeError("Missing required property 'data_type'")
|
|
173
|
+
__props__.__dict__["data_type"] = data_type
|
|
174
|
+
if dimension is None and not opts.urn:
|
|
175
|
+
raise TypeError("Missing required property 'dimension'")
|
|
176
|
+
__props__.__dict__["dimension"] = dimension
|
|
177
|
+
if distance_metric is None and not opts.urn:
|
|
178
|
+
raise TypeError("Missing required property 'distance_metric'")
|
|
179
|
+
__props__.__dict__["distance_metric"] = distance_metric
|
|
180
|
+
__props__.__dict__["index_name"] = index_name
|
|
181
|
+
__props__.__dict__["metadata_configuration"] = metadata_configuration
|
|
182
|
+
__props__.__dict__["vector_bucket_arn"] = vector_bucket_arn
|
|
183
|
+
__props__.__dict__["vector_bucket_name"] = vector_bucket_name
|
|
184
|
+
__props__.__dict__["creation_time"] = None
|
|
185
|
+
__props__.__dict__["index_arn"] = None
|
|
186
|
+
replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["dataType", "dimension", "distanceMetric", "indexName", "metadataConfiguration", "vectorBucketArn", "vectorBucketName"])
|
|
187
|
+
opts = pulumi.ResourceOptions.merge(opts, replace_on_changes)
|
|
188
|
+
super(Index, __self__).__init__(
|
|
189
|
+
'aws-native:s3vectors:Index',
|
|
190
|
+
resource_name,
|
|
191
|
+
__props__,
|
|
192
|
+
opts)
|
|
193
|
+
|
|
194
|
+
@staticmethod
|
|
195
|
+
def get(resource_name: str,
|
|
196
|
+
id: pulumi.Input[str],
|
|
197
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'Index':
|
|
198
|
+
"""
|
|
199
|
+
Get an existing Index resource's state with the given name, id, and optional extra
|
|
200
|
+
properties used to qualify the lookup.
|
|
201
|
+
|
|
202
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
203
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
204
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
205
|
+
"""
|
|
206
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
207
|
+
|
|
208
|
+
__props__ = IndexArgs.__new__(IndexArgs)
|
|
209
|
+
|
|
210
|
+
__props__.__dict__["creation_time"] = None
|
|
211
|
+
__props__.__dict__["data_type"] = None
|
|
212
|
+
__props__.__dict__["dimension"] = None
|
|
213
|
+
__props__.__dict__["distance_metric"] = None
|
|
214
|
+
__props__.__dict__["index_arn"] = None
|
|
215
|
+
__props__.__dict__["index_name"] = None
|
|
216
|
+
__props__.__dict__["metadata_configuration"] = None
|
|
217
|
+
__props__.__dict__["vector_bucket_arn"] = None
|
|
218
|
+
__props__.__dict__["vector_bucket_name"] = None
|
|
219
|
+
return Index(resource_name, opts=opts, __props__=__props__)
|
|
220
|
+
|
|
221
|
+
@_builtins.property
|
|
222
|
+
@pulumi.getter(name="creationTime")
|
|
223
|
+
def creation_time(self) -> pulumi.Output[_builtins.str]:
|
|
224
|
+
return pulumi.get(self, "creation_time")
|
|
225
|
+
|
|
226
|
+
@_builtins.property
|
|
227
|
+
@pulumi.getter(name="dataType")
|
|
228
|
+
def data_type(self) -> pulumi.Output['IndexDataType']:
|
|
229
|
+
return pulumi.get(self, "data_type")
|
|
230
|
+
|
|
231
|
+
@_builtins.property
|
|
232
|
+
@pulumi.getter
|
|
233
|
+
def dimension(self) -> pulumi.Output[_builtins.int]:
|
|
234
|
+
return pulumi.get(self, "dimension")
|
|
235
|
+
|
|
236
|
+
@_builtins.property
|
|
237
|
+
@pulumi.getter(name="distanceMetric")
|
|
238
|
+
def distance_metric(self) -> pulumi.Output['IndexDistanceMetric']:
|
|
239
|
+
return pulumi.get(self, "distance_metric")
|
|
240
|
+
|
|
241
|
+
@_builtins.property
|
|
242
|
+
@pulumi.getter(name="indexArn")
|
|
243
|
+
def index_arn(self) -> pulumi.Output[_builtins.str]:
|
|
244
|
+
return pulumi.get(self, "index_arn")
|
|
245
|
+
|
|
246
|
+
@_builtins.property
|
|
247
|
+
@pulumi.getter(name="indexName")
|
|
248
|
+
def index_name(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
249
|
+
return pulumi.get(self, "index_name")
|
|
250
|
+
|
|
251
|
+
@_builtins.property
|
|
252
|
+
@pulumi.getter(name="metadataConfiguration")
|
|
253
|
+
def metadata_configuration(self) -> pulumi.Output[Optional['outputs.IndexMetadataConfiguration']]:
|
|
254
|
+
return pulumi.get(self, "metadata_configuration")
|
|
255
|
+
|
|
256
|
+
@_builtins.property
|
|
257
|
+
@pulumi.getter(name="vectorBucketArn")
|
|
258
|
+
def vector_bucket_arn(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
259
|
+
return pulumi.get(self, "vector_bucket_arn")
|
|
260
|
+
|
|
261
|
+
@_builtins.property
|
|
262
|
+
@pulumi.getter(name="vectorBucketName")
|
|
263
|
+
def vector_bucket_name(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
264
|
+
return pulumi.get(self, "vector_bucket_name")
|
|
265
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
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 ._enums import *
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'IndexMetadataConfiguration',
|
|
20
|
+
'VectorBucketEncryptionConfiguration',
|
|
21
|
+
'VectorBucketPolicyPolicy',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class IndexMetadataConfiguration(dict):
|
|
26
|
+
"""
|
|
27
|
+
The metadata configuration for the vector index.
|
|
28
|
+
"""
|
|
29
|
+
@staticmethod
|
|
30
|
+
def __key_warning(key: str):
|
|
31
|
+
suggest = None
|
|
32
|
+
if key == "nonFilterableMetadataKeys":
|
|
33
|
+
suggest = "non_filterable_metadata_keys"
|
|
34
|
+
|
|
35
|
+
if suggest:
|
|
36
|
+
pulumi.log.warn(f"Key '{key}' not found in IndexMetadataConfiguration. Access the value via the '{suggest}' property getter instead.")
|
|
37
|
+
|
|
38
|
+
def __getitem__(self, key: str) -> Any:
|
|
39
|
+
IndexMetadataConfiguration.__key_warning(key)
|
|
40
|
+
return super().__getitem__(key)
|
|
41
|
+
|
|
42
|
+
def get(self, key: str, default = None) -> Any:
|
|
43
|
+
IndexMetadataConfiguration.__key_warning(key)
|
|
44
|
+
return super().get(key, default)
|
|
45
|
+
|
|
46
|
+
def __init__(__self__, *,
|
|
47
|
+
non_filterable_metadata_keys: Optional[Sequence[_builtins.str]] = None):
|
|
48
|
+
"""
|
|
49
|
+
The metadata configuration for the vector index.
|
|
50
|
+
:param Sequence[_builtins.str] non_filterable_metadata_keys: Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
|
|
51
|
+
"""
|
|
52
|
+
if non_filterable_metadata_keys is not None:
|
|
53
|
+
pulumi.set(__self__, "non_filterable_metadata_keys", non_filterable_metadata_keys)
|
|
54
|
+
|
|
55
|
+
@_builtins.property
|
|
56
|
+
@pulumi.getter(name="nonFilterableMetadataKeys")
|
|
57
|
+
def non_filterable_metadata_keys(self) -> Optional[Sequence[_builtins.str]]:
|
|
58
|
+
"""
|
|
59
|
+
Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "non_filterable_metadata_keys")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@pulumi.output_type
|
|
65
|
+
class VectorBucketEncryptionConfiguration(dict):
|
|
66
|
+
"""
|
|
67
|
+
The encryption configuration for the vector bucket.
|
|
68
|
+
"""
|
|
69
|
+
@staticmethod
|
|
70
|
+
def __key_warning(key: str):
|
|
71
|
+
suggest = None
|
|
72
|
+
if key == "kmsKeyArn":
|
|
73
|
+
suggest = "kms_key_arn"
|
|
74
|
+
elif key == "sseType":
|
|
75
|
+
suggest = "sse_type"
|
|
76
|
+
|
|
77
|
+
if suggest:
|
|
78
|
+
pulumi.log.warn(f"Key '{key}' not found in VectorBucketEncryptionConfiguration. Access the value via the '{suggest}' property getter instead.")
|
|
79
|
+
|
|
80
|
+
def __getitem__(self, key: str) -> Any:
|
|
81
|
+
VectorBucketEncryptionConfiguration.__key_warning(key)
|
|
82
|
+
return super().__getitem__(key)
|
|
83
|
+
|
|
84
|
+
def get(self, key: str, default = None) -> Any:
|
|
85
|
+
VectorBucketEncryptionConfiguration.__key_warning(key)
|
|
86
|
+
return super().get(key, default)
|
|
87
|
+
|
|
88
|
+
def __init__(__self__, *,
|
|
89
|
+
kms_key_arn: Optional[_builtins.str] = None,
|
|
90
|
+
sse_type: Optional['VectorBucketEncryptionConfigurationSseType'] = None):
|
|
91
|
+
"""
|
|
92
|
+
The encryption configuration for the vector bucket.
|
|
93
|
+
:param _builtins.str kms_key_arn: AWS Key Management Service (KMS) customer managed key ID to use for the encryption configuration. This parameter is allowed if and only if sseType is set to aws:kms
|
|
94
|
+
:param 'VectorBucketEncryptionConfigurationSseType' sse_type: The server-side encryption type to use for the encryption configuration of the vector bucket. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256.
|
|
95
|
+
"""
|
|
96
|
+
if kms_key_arn is not None:
|
|
97
|
+
pulumi.set(__self__, "kms_key_arn", kms_key_arn)
|
|
98
|
+
if sse_type is not None:
|
|
99
|
+
pulumi.set(__self__, "sse_type", sse_type)
|
|
100
|
+
|
|
101
|
+
@_builtins.property
|
|
102
|
+
@pulumi.getter(name="kmsKeyArn")
|
|
103
|
+
def kms_key_arn(self) -> Optional[_builtins.str]:
|
|
104
|
+
"""
|
|
105
|
+
AWS Key Management Service (KMS) customer managed key ID to use for the encryption configuration. This parameter is allowed if and only if sseType is set to aws:kms
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "kms_key_arn")
|
|
108
|
+
|
|
109
|
+
@_builtins.property
|
|
110
|
+
@pulumi.getter(name="sseType")
|
|
111
|
+
def sse_type(self) -> Optional['VectorBucketEncryptionConfigurationSseType']:
|
|
112
|
+
"""
|
|
113
|
+
The server-side encryption type to use for the encryption configuration of the vector bucket. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "sse_type")
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
@pulumi.output_type
|
|
119
|
+
class VectorBucketPolicyPolicy(dict):
|
|
120
|
+
"""
|
|
121
|
+
A policy document containing permissions to add to the specified vector bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
|
|
122
|
+
"""
|
|
123
|
+
def __init__(__self__):
|
|
124
|
+
"""
|
|
125
|
+
A policy document containing permissions to add to the specified vector bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
|
|
126
|
+
"""
|
|
127
|
+
pass
|
|
128
|
+
|
|
129
|
+
|