Skip to content

Commit

Permalink
Deprecate gamelift Matchmaking* resources (#4257)
Browse files Browse the repository at this point in the history
GameLift module has MatchmakingConfiguration and MatchmakingRuleSet
resources that are implemented using patches and not maintained
upstream. With this PR these resources are deprecated and are to be
removed in the next major version. These resources have very modest
usage numbers and have alternatives in the aws-native provider.
  • Loading branch information
t0yv0 authored Jul 19, 2024
1 parent 7a45da3 commit 406af79
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 10 deletions.
6 changes: 4 additions & 2 deletions provider/cmd/pulumi-resource-aws/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -257584,7 +257584,8 @@
}
},
"type": "object"
}
},
"deprecationMessage": "This resource will be removed in the next major version. Consider using https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingconfiguration/ instead"
},
"aws:gamelift/matchmakingRuleSet:MatchmakingRuleSet": {
"description": "Provides a GameLift Matchmaking Rule Set resources.\n\n## Import\n\nGameLift Matchmaking Rule Sets can be imported using the ID, e.g.,\n\n```sh\n$ pulumi import aws:gamelift/matchmakingRuleSet:MatchmakingRuleSet example \u003cruleset-id\u003e\n```\n",
Expand Down Expand Up @@ -257676,7 +257677,8 @@
}
},
"type": "object"
}
},
"deprecationMessage": "This resource will be removed in the next major version.Consider using https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingruleset/ instead"
},
"aws:gamelift/script:Script": {
"description": "Provides an GameLift Script resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\n\nconst example = new aws.gamelift.Script(\"example\", {\n name: \"example-script\",\n storageLocation: {\n bucket: exampleAwsS3Bucket.id,\n key: exampleAwsS3Object.key,\n roleArn: exampleAwsIamRole.arn,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\n\nexample = aws.gamelift.Script(\"example\",\n name=\"example-script\",\n storage_location={\n \"bucket\": example_aws_s3_bucket[\"id\"],\n \"key\": example_aws_s3_object[\"key\"],\n \"roleArn\": example_aws_iam_role[\"arn\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Aws.GameLift.Script(\"example\", new()\n {\n Name = \"example-script\",\n StorageLocation = new Aws.GameLift.Inputs.ScriptStorageLocationArgs\n {\n Bucket = exampleAwsS3Bucket.Id,\n Key = exampleAwsS3Object.Key,\n RoleArn = exampleAwsIamRole.Arn,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/gamelift\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := gamelift.NewScript(ctx, \"example\", \u0026gamelift.ScriptArgs{\n\t\t\tName: pulumi.String(\"example-script\"),\n\t\t\tStorageLocation: \u0026gamelift.ScriptStorageLocationArgs{\n\t\t\t\tBucket: pulumi.Any(exampleAwsS3Bucket.Id),\n\t\t\t\tKey: pulumi.Any(exampleAwsS3Object.Key),\n\t\t\t\tRoleArn: pulumi.Any(exampleAwsIamRole.Arn),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.gamelift.Script;\nimport com.pulumi.aws.gamelift.ScriptArgs;\nimport com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Script(\"example\", ScriptArgs.builder()\n .name(\"example-script\")\n .storageLocation(ScriptStorageLocationArgs.builder()\n .bucket(exampleAwsS3Bucket.id())\n .key(exampleAwsS3Object.key())\n .roleArn(exampleAwsIamRole.arn())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: aws:gamelift:Script\n properties:\n name: example-script\n storageLocation:\n bucket: ${exampleAwsS3Bucket.id}\n key: ${exampleAwsS3Object.key}\n roleArn: ${exampleAwsIamRole.arn}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nUsing `pulumi import`, import GameLift Scripts using the ID. For example:\n\n```sh\n$ pulumi import aws:gamelift/script:Script example \u003cscript-id\u003e\n```\n",
Expand Down
26 changes: 18 additions & 8 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -2308,14 +2308,24 @@ compatibility shim in favor of the new "name" field.`)

// GameLift

"aws_gamelift_alias": {Tok: awsResource(gameliftMod, "Alias")},
"aws_gamelift_build": {Tok: awsResource(gameliftMod, "Build")},
"aws_gamelift_fleet": {Tok: awsResource(gameliftMod, "Fleet")},
"aws_gamelift_game_session_queue": {Tok: awsResource(gameliftMod, "GameSessionQueue")},
"aws_gamelift_game_server_group": {Tok: awsResource(gameliftMod, "GameServerGroup")},
"aws_gamelift_script": {Tok: awsResource(gameliftMod, "Script")},
"aws_gamelift_matchmaking_configuration": {Tok: awsResource(gameliftMod, "MatchmakingConfiguration")},
"aws_gamelift_matchmaking_rule_set": {Tok: awsResource(gameliftMod, "MatchmakingRuleSet")},
"aws_gamelift_alias": {Tok: awsResource(gameliftMod, "Alias")},
"aws_gamelift_build": {Tok: awsResource(gameliftMod, "Build")},
"aws_gamelift_fleet": {Tok: awsResource(gameliftMod, "Fleet")},
"aws_gamelift_game_session_queue": {Tok: awsResource(gameliftMod, "GameSessionQueue")},
"aws_gamelift_game_server_group": {Tok: awsResource(gameliftMod, "GameServerGroup")},
"aws_gamelift_script": {Tok: awsResource(gameliftMod, "Script")},

"aws_gamelift_matchmaking_configuration": {
Tok: awsResource(gameliftMod, "MatchmakingConfiguration"),
DeprecationMessage: "This resource will be removed in the next major version. " +
"Consider using https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingconfiguration/ instead",
},

"aws_gamelift_matchmaking_rule_set": {
Tok: awsResource(gameliftMod, "MatchmakingRuleSet"),
DeprecationMessage: "This resource will be removed in the next major version." +
"Consider using https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingruleset/ instead",
},

// Glacier
"aws_glacier_vault": {Tok: awsResource(glacierMod, "Vault")},
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/GameLift/MatchmakingConfiguration.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/dotnet/GameLift/MatchmakingRuleSet.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions sdk/go/aws/gamelift/matchmakingConfiguration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions sdk/go/aws/gamelift/matchmakingRuleSet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sdk/nodejs/gamelift/matchmakingConfiguration.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sdk/nodejs/gamelift/matchmakingRuleSet.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sdk/python/pulumi_aws/gamelift/matchmaking_configuration.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sdk/python/pulumi_aws/gamelift/matchmaking_rule_set.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 406af79

Please sign in to comment.