@pulumi/snowflake 0.59.0-alpha.1726827563 → 0.59.0

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.
@@ -1,11 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * ## Import
4
6
  *
5
- * format is database name | schema name | policy name
6
- *
7
7
  * ```sh
8
- * $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example 'dbName|schemaName|policyName'
8
+ * $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
9
9
  * ```
10
10
  */
11
11
  export declare class RowAccessPolicy extends pulumi.CustomResource {
@@ -24,36 +24,42 @@ export declare class RowAccessPolicy extends pulumi.CustomResource {
24
24
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
25
25
  */
26
26
  static isInstance(obj: any): obj is RowAccessPolicy;
27
+ /**
28
+ * List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
29
+ */
30
+ readonly arguments: pulumi.Output<outputs.RowAccessPolicyArgument[]>;
31
+ /**
32
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
33
+ */
34
+ readonly body: pulumi.Output<string>;
27
35
  /**
28
36
  * Specifies a comment for the row access policy.
29
37
  */
30
38
  readonly comment: pulumi.Output<string | undefined>;
31
39
  /**
32
- * The database in which to create the row access policy.
40
+ * The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
33
41
  */
34
42
  readonly database: pulumi.Output<string>;
43
+ /**
44
+ * Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
45
+ */
46
+ readonly describeOutputs: pulumi.Output<outputs.RowAccessPolicyDescribeOutput[]>;
35
47
  /**
36
48
  * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
37
49
  */
38
50
  readonly fullyQualifiedName: pulumi.Output<string>;
39
51
  /**
40
- * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
52
+ * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
41
53
  */
42
54
  readonly name: pulumi.Output<string>;
43
55
  /**
44
- * Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
45
- */
46
- readonly rowAccessExpression: pulumi.Output<string>;
47
- /**
48
- * The schema in which to create the row access policy.
56
+ * The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
49
57
  */
50
58
  readonly schema: pulumi.Output<string>;
51
59
  /**
52
- * Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
60
+ * Outputs the result of `SHOW ROW ACCESS POLICY` for the given row access policy.
53
61
  */
54
- readonly signature: pulumi.Output<{
55
- [key: string]: string;
56
- }>;
62
+ readonly showOutputs: pulumi.Output<outputs.RowAccessPolicyShowOutput[]>;
57
63
  /**
58
64
  * Create a RowAccessPolicy resource with the given unique name, arguments, and options.
59
65
  *
@@ -67,65 +73,69 @@ export declare class RowAccessPolicy extends pulumi.CustomResource {
67
73
  * Input properties used for looking up and filtering RowAccessPolicy resources.
68
74
  */
69
75
  export interface RowAccessPolicyState {
76
+ /**
77
+ * List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
78
+ */
79
+ arguments?: pulumi.Input<pulumi.Input<inputs.RowAccessPolicyArgument>[]>;
80
+ /**
81
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
82
+ */
83
+ body?: pulumi.Input<string>;
70
84
  /**
71
85
  * Specifies a comment for the row access policy.
72
86
  */
73
87
  comment?: pulumi.Input<string>;
74
88
  /**
75
- * The database in which to create the row access policy.
89
+ * The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
76
90
  */
77
91
  database?: pulumi.Input<string>;
92
+ /**
93
+ * Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
94
+ */
95
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.RowAccessPolicyDescribeOutput>[]>;
78
96
  /**
79
97
  * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
80
98
  */
81
99
  fullyQualifiedName?: pulumi.Input<string>;
82
100
  /**
83
- * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
101
+ * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
84
102
  */
85
103
  name?: pulumi.Input<string>;
86
104
  /**
87
- * Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
88
- */
89
- rowAccessExpression?: pulumi.Input<string>;
90
- /**
91
- * The schema in which to create the row access policy.
105
+ * The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
92
106
  */
93
107
  schema?: pulumi.Input<string>;
94
108
  /**
95
- * Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
109
+ * Outputs the result of `SHOW ROW ACCESS POLICY` for the given row access policy.
96
110
  */
97
- signature?: pulumi.Input<{
98
- [key: string]: pulumi.Input<string>;
99
- }>;
111
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.RowAccessPolicyShowOutput>[]>;
100
112
  }
101
113
  /**
102
114
  * The set of arguments for constructing a RowAccessPolicy resource.
103
115
  */
104
116
  export interface RowAccessPolicyArgs {
117
+ /**
118
+ * List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
119
+ */
120
+ arguments: pulumi.Input<pulumi.Input<inputs.RowAccessPolicyArgument>[]>;
121
+ /**
122
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
123
+ */
124
+ body: pulumi.Input<string>;
105
125
  /**
106
126
  * Specifies a comment for the row access policy.
107
127
  */
108
128
  comment?: pulumi.Input<string>;
109
129
  /**
110
- * The database in which to create the row access policy.
130
+ * The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
111
131
  */
112
132
  database: pulumi.Input<string>;
113
133
  /**
114
- * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
134
+ * Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
115
135
  */
116
136
  name?: pulumi.Input<string>;
117
137
  /**
118
- * Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
119
- */
120
- rowAccessExpression: pulumi.Input<string>;
121
- /**
122
- * The schema in which to create the row access policy.
138
+ * The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
123
139
  */
124
140
  schema: pulumi.Input<string>;
125
- /**
126
- * Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
127
- */
128
- signature: pulumi.Input<{
129
- [key: string]: pulumi.Input<string>;
130
- }>;
131
141
  }
@@ -8,10 +8,8 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * ## Import
10
10
  *
11
- * format is database name | schema name | policy name
12
- *
13
11
  * ```sh
14
- * $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example 'dbName|schemaName|policyName'
12
+ * $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
15
13
  * ```
16
14
  */
17
15
  class RowAccessPolicy extends pulumi.CustomResource {
@@ -42,35 +40,39 @@ class RowAccessPolicy extends pulumi.CustomResource {
42
40
  opts = opts || {};
43
41
  if (opts.id) {
44
42
  const state = argsOrState;
43
+ resourceInputs["arguments"] = state ? state.arguments : undefined;
44
+ resourceInputs["body"] = state ? state.body : undefined;
45
45
  resourceInputs["comment"] = state ? state.comment : undefined;
46
46
  resourceInputs["database"] = state ? state.database : undefined;
47
+ resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
47
48
  resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
48
49
  resourceInputs["name"] = state ? state.name : undefined;
49
- resourceInputs["rowAccessExpression"] = state ? state.rowAccessExpression : undefined;
50
50
  resourceInputs["schema"] = state ? state.schema : undefined;
51
- resourceInputs["signature"] = state ? state.signature : undefined;
51
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
52
52
  }
53
53
  else {
54
54
  const args = argsOrState;
55
+ if ((!args || args.arguments === undefined) && !opts.urn) {
56
+ throw new Error("Missing required property 'arguments'");
57
+ }
58
+ if ((!args || args.body === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'body'");
60
+ }
55
61
  if ((!args || args.database === undefined) && !opts.urn) {
56
62
  throw new Error("Missing required property 'database'");
57
63
  }
58
- if ((!args || args.rowAccessExpression === undefined) && !opts.urn) {
59
- throw new Error("Missing required property 'rowAccessExpression'");
60
- }
61
64
  if ((!args || args.schema === undefined) && !opts.urn) {
62
65
  throw new Error("Missing required property 'schema'");
63
66
  }
64
- if ((!args || args.signature === undefined) && !opts.urn) {
65
- throw new Error("Missing required property 'signature'");
66
- }
67
+ resourceInputs["arguments"] = args ? args.arguments : undefined;
68
+ resourceInputs["body"] = args ? args.body : undefined;
67
69
  resourceInputs["comment"] = args ? args.comment : undefined;
68
70
  resourceInputs["database"] = args ? args.database : undefined;
69
71
  resourceInputs["name"] = args ? args.name : undefined;
70
- resourceInputs["rowAccessExpression"] = args ? args.rowAccessExpression : undefined;
71
72
  resourceInputs["schema"] = args ? args.schema : undefined;
72
- resourceInputs["signature"] = args ? args.signature : undefined;
73
+ resourceInputs["describeOutputs"] = undefined /*out*/;
73
74
  resourceInputs["fullyQualifiedName"] = undefined /*out*/;
75
+ resourceInputs["showOutputs"] = undefined /*out*/;
74
76
  }
75
77
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
78
  super(RowAccessPolicy.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"rowAccessPolicy.js","sourceRoot":"","sources":["../rowAccessPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAA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AC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAjHL,0CAkHC;AApGG,gBAAgB;AACO,4BAAY,GAAG,iDAAiD,CAAC"}
package/types/input.d.ts CHANGED
@@ -885,6 +885,134 @@ export interface GetGrantsGrantsToShareArgs {
885
885
  */
886
886
  shareName: pulumi.Input<string>;
887
887
  }
888
+ export interface GetMaskingPoliciesIn {
889
+ /**
890
+ * Returns records for the entire account.
891
+ */
892
+ account?: boolean;
893
+ /**
894
+ * Returns records for the specified application.
895
+ */
896
+ application?: string;
897
+ /**
898
+ * Returns records for the specified application package.
899
+ */
900
+ applicationPackage?: string;
901
+ /**
902
+ * Returns records for the current database in use or for a specified database.
903
+ */
904
+ database?: string;
905
+ /**
906
+ * Returns records for the current schema in use or a specified schema. Use fully qualified name.
907
+ */
908
+ schema?: string;
909
+ }
910
+ export interface GetMaskingPoliciesInArgs {
911
+ /**
912
+ * Returns records for the entire account.
913
+ */
914
+ account?: pulumi.Input<boolean>;
915
+ /**
916
+ * Returns records for the specified application.
917
+ */
918
+ application?: pulumi.Input<string>;
919
+ /**
920
+ * Returns records for the specified application package.
921
+ */
922
+ applicationPackage?: pulumi.Input<string>;
923
+ /**
924
+ * Returns records for the current database in use or for a specified database.
925
+ */
926
+ database?: pulumi.Input<string>;
927
+ /**
928
+ * Returns records for the current schema in use or a specified schema. Use fully qualified name.
929
+ */
930
+ schema?: pulumi.Input<string>;
931
+ }
932
+ export interface GetMaskingPoliciesLimit {
933
+ /**
934
+ * Specifies a **case-sensitive** pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
935
+ */
936
+ from?: string;
937
+ /**
938
+ * The maximum number of rows to return.
939
+ */
940
+ rows: number;
941
+ }
942
+ export interface GetMaskingPoliciesLimitArgs {
943
+ /**
944
+ * Specifies a **case-sensitive** pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
945
+ */
946
+ from?: pulumi.Input<string>;
947
+ /**
948
+ * The maximum number of rows to return.
949
+ */
950
+ rows: pulumi.Input<number>;
951
+ }
952
+ export interface GetRowAccessPoliciesIn {
953
+ /**
954
+ * Returns records for the entire account.
955
+ */
956
+ account?: boolean;
957
+ /**
958
+ * Returns records for the specified application.
959
+ */
960
+ application?: string;
961
+ /**
962
+ * Returns records for the specified application package.
963
+ */
964
+ applicationPackage?: string;
965
+ /**
966
+ * Returns records for the current database in use or for a specified database.
967
+ */
968
+ database?: string;
969
+ /**
970
+ * Returns records for the current schema in use or a specified schema. Use fully qualified name.
971
+ */
972
+ schema?: string;
973
+ }
974
+ export interface GetRowAccessPoliciesInArgs {
975
+ /**
976
+ * Returns records for the entire account.
977
+ */
978
+ account?: pulumi.Input<boolean>;
979
+ /**
980
+ * Returns records for the specified application.
981
+ */
982
+ application?: pulumi.Input<string>;
983
+ /**
984
+ * Returns records for the specified application package.
985
+ */
986
+ applicationPackage?: pulumi.Input<string>;
987
+ /**
988
+ * Returns records for the current database in use or for a specified database.
989
+ */
990
+ database?: pulumi.Input<string>;
991
+ /**
992
+ * Returns records for the current schema in use or a specified schema. Use fully qualified name.
993
+ */
994
+ schema?: pulumi.Input<string>;
995
+ }
996
+ export interface GetRowAccessPoliciesLimit {
997
+ /**
998
+ * Specifies a **case-sensitive** pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
999
+ */
1000
+ from?: string;
1001
+ /**
1002
+ * The maximum number of rows to return.
1003
+ */
1004
+ rows: number;
1005
+ }
1006
+ export interface GetRowAccessPoliciesLimitArgs {
1007
+ /**
1008
+ * Specifies a **case-sensitive** pattern that is used to match object name. After the first match, the limit on the number of rows will be applied.
1009
+ */
1010
+ from?: pulumi.Input<string>;
1011
+ /**
1012
+ * The maximum number of rows to return.
1013
+ */
1014
+ rows: pulumi.Input<number>;
1015
+ }
888
1016
  export interface GetSchemasIn {
889
1017
  /**
890
1018
  * Returns records for the entire account.
@@ -1221,19 +1349,37 @@ export interface GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture {
1221
1349
  */
1222
1350
  objectTypePlural: pulumi.Input<string>;
1223
1351
  }
1224
- export interface MaskingPolicySignature {
1225
- columns: pulumi.Input<pulumi.Input<inputs.MaskingPolicySignatureColumn>[]>;
1226
- }
1227
- export interface MaskingPolicySignatureColumn {
1352
+ export interface MaskingPolicyArgument {
1228
1353
  /**
1229
- * Specifies the column name to mask.
1354
+ * The argument name
1230
1355
  */
1231
1356
  name: pulumi.Input<string>;
1232
1357
  /**
1233
- * Specifies the column type to mask.
1358
+ * The argument type. VECTOR data types are not yet supported. For more information about data types, check [Snowflake docs](https://docs.snowflake.com/en/sql-reference/intro-summary-data-types).
1234
1359
  */
1235
1360
  type: pulumi.Input<string>;
1236
1361
  }
1362
+ export interface MaskingPolicyDescribeOutput {
1363
+ body?: pulumi.Input<string>;
1364
+ name?: pulumi.Input<string>;
1365
+ returnType?: pulumi.Input<string>;
1366
+ signatures?: pulumi.Input<pulumi.Input<inputs.MaskingPolicyDescribeOutputSignature>[]>;
1367
+ }
1368
+ export interface MaskingPolicyDescribeOutputSignature {
1369
+ name?: pulumi.Input<string>;
1370
+ type?: pulumi.Input<string>;
1371
+ }
1372
+ export interface MaskingPolicyShowOutput {
1373
+ comment?: pulumi.Input<string>;
1374
+ createdOn?: pulumi.Input<string>;
1375
+ databaseName?: pulumi.Input<string>;
1376
+ exemptOtherPolicies?: pulumi.Input<boolean>;
1377
+ kind?: pulumi.Input<string>;
1378
+ name?: pulumi.Input<string>;
1379
+ owner?: pulumi.Input<string>;
1380
+ ownerRoleType?: pulumi.Input<string>;
1381
+ schemaName?: pulumi.Input<string>;
1382
+ }
1237
1383
  export interface MaterializedViewTag {
1238
1384
  /**
1239
1385
  * Name of the database that the tag was created in.
@@ -1599,6 +1745,21 @@ export interface ProviderTokenAccessor {
1599
1745
  */
1600
1746
  tokenEndpoint: pulumi.Input<string>;
1601
1747
  }
1748
+ export interface ResourceMonitorShowOutput {
1749
+ comment?: pulumi.Input<string>;
1750
+ createdOn?: pulumi.Input<string>;
1751
+ creditQuota?: pulumi.Input<number>;
1752
+ endTime?: pulumi.Input<string>;
1753
+ frequency?: pulumi.Input<string>;
1754
+ level?: pulumi.Input<string>;
1755
+ name?: pulumi.Input<string>;
1756
+ owner?: pulumi.Input<string>;
1757
+ remainingCredits?: pulumi.Input<number>;
1758
+ startTime?: pulumi.Input<string>;
1759
+ suspendAt?: pulumi.Input<number>;
1760
+ suspendImmediateAt?: pulumi.Input<number>;
1761
+ usedCredits?: pulumi.Input<number>;
1762
+ }
1602
1763
  export interface RoleShowOutput {
1603
1764
  assignedToUsers?: pulumi.Input<number>;
1604
1765
  comment?: pulumi.Input<string>;
@@ -1611,6 +1772,37 @@ export interface RoleShowOutput {
1611
1772
  name?: pulumi.Input<string>;
1612
1773
  owner?: pulumi.Input<string>;
1613
1774
  }
1775
+ export interface RowAccessPolicyArgument {
1776
+ /**
1777
+ * The argument name
1778
+ */
1779
+ name: pulumi.Input<string>;
1780
+ /**
1781
+ * The argument type. VECTOR data types are not yet supported. For more information about data types, check [Snowflake docs](https://docs.snowflake.com/en/sql-reference/intro-summary-data-types).
1782
+ */
1783
+ type: pulumi.Input<string>;
1784
+ }
1785
+ export interface RowAccessPolicyDescribeOutput {
1786
+ body?: pulumi.Input<string>;
1787
+ name?: pulumi.Input<string>;
1788
+ returnType?: pulumi.Input<string>;
1789
+ signatures?: pulumi.Input<pulumi.Input<inputs.RowAccessPolicyDescribeOutputSignature>[]>;
1790
+ }
1791
+ export interface RowAccessPolicyDescribeOutputSignature {
1792
+ name?: pulumi.Input<string>;
1793
+ type?: pulumi.Input<string>;
1794
+ }
1795
+ export interface RowAccessPolicyShowOutput {
1796
+ comment?: pulumi.Input<string>;
1797
+ createdOn?: pulumi.Input<string>;
1798
+ databaseName?: pulumi.Input<string>;
1799
+ kind?: pulumi.Input<string>;
1800
+ name?: pulumi.Input<string>;
1801
+ options?: pulumi.Input<string>;
1802
+ owner?: pulumi.Input<string>;
1803
+ ownerRoleType?: pulumi.Input<string>;
1804
+ schemaName?: pulumi.Input<string>;
1805
+ }
1614
1806
  export interface Saml2IntegrationDescribeOutput {
1615
1807
  allowedEmailPatterns?: pulumi.Input<pulumi.Input<inputs.Saml2IntegrationDescribeOutputAllowedEmailPattern>[]>;
1616
1808
  allowedUserDomains?: pulumi.Input<pulumi.Input<inputs.Saml2IntegrationDescribeOutputAllowedUserDomain>[]>;